Arnaud Thimel a écrit :
Hi all,
I kept searching about my problem.
@Pablo I tried to use profiling with Hprof and jmap+jhat. But the information I got, didn't allow me to solve my problem.
@Youcef Sorry, I forgot to mention that I was already able to import all my DB, but I need to set the maximum heap size to more than 1.5Go !!!
@Sébastien You found the thing I was missing :) When I flush the xwiki caches, I now also flush the "classCache" and "archiveCache" from the XWikiContext. I can now import my thousands of objects using only the default heap size (64Mo).
Anyway, I don't know how, but XWiki could be improved by increasing the way we use these caches.
Thanks all, and best regards.
Arnaud.
Sébastien Gaïde wrote:
Anyway, the amount of memory used doesn't go down after flushing the caches. And I still get my Heap Space exception.
I don't know if it's related to your problem, but I remember that I had to flush some caches in XWikiContext (classCache, archiveCache) when I was using the same XWikiContext to create a heap of pages. As you can see in the code these two caches are always used to add some objects in them, nether to remove them. Right.. the XWikiContext with the classCache and archiveCache (which are needed) is not made for being use for too long without cleaning up.. Maybe there should be some automated cleaning up when it gets too big..
Ludovic
The two caches are not accessible by default, so you will have to add some code in XWikiContext to flush them.
HTH,
Seb.
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost AIM: nvludo Yahoo: ludovic