Hi devs,
Right now we recommend this on
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HPrerequis… :
"A minimum of 300MB of heap memory and 96MB of permGen. Recommended values are above
512MB for the heap and 128MB for the permGen (-Xmx512m -XX:MaxPermSize=128m)"
I've discovered on
http://ci.xwiki.org/job/xwiki-enterprise-test-extension/org.xwiki.enterpris…
that we had an OOM and it seems to happen more and in more in our functional tests on CI.
Something we've done must have increased our permgen memory.
I've done some measurements with yourkit and here's what I found:
* After XWiki is started and before any page is called we already use 64MB of permgen
* After calling the home page, the permgen used goes to 101MB
* After calling a page using the code macro, the permgen goes to 132MB
So it seems that your default value of 96MB and recommended value of 128MB are not
enough…
BTW forcing garbage collection reduces from 132MB to 130MB (not much).
We need to either find what is taking all our permgen memory or if it's legit increase
our recommendations and the default value we use in start_xwiki.sh/bat
Any idea?
My hunch tells me the Extension Manager could be the cause.
Thanks
-Vincent