[xwiki-dev] Possible memory leak ?
Arnaud Thimel
thimel at codelutin.com
Mon Apr 9 23:01:02 CEST 2007
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.
>
> The two caches are not accessible by default, so you will have to add
> some code in XWikiContext to flush them.
>
> HTH,
>
> Seb.
>
>
--
Arnaud Thimel
Société Code Lutin - http://www.codelutin.com
More information about the devs
mailing list