On Mar 12, 2013, at 3:59 PM, Matt Lamoureux <[email protected]> wrote:
Hi all, I admit that I am a Tomcat rookie. That being said, I have been struggling with out-of-memory/permgen issues for a while now with no progress. I have looked at this:
http://www.xwiki.org/xwiki/bin/view/FAQ/HowToSolveAJavaHeapMemoryError
...but I have not been successful in adjusting my settings. I am running on Windows 2008 R2 64-bit with 12gb available RAM. I am trying to allocate at least 4gb to run Xwiki
BTW 4GB seems too much, see recommendations on http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Installation#HPrerequisi... (I've just updated the page with more information) Thanks -Vincent
, since nothing else is running on this server (other than MySQL). I run Tomcat as a service, if that matters. I have been using the Groovy function "${Runtime.getRuntime().maxMemory()}" to keep an eye on my heap size. It stays at 259522560 bytes (247.5mb) no matter what I do. I have tried setting a CATALINA_OPTS system variable with the following settings:
-Xms2096m -Xmx=4096m -XX:MaxPermSize=1024m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled
I have also tried going into the Java tab on the Tomcat properties window and setting the values there:
-DXms2096m -DXmx4096m -DXX:MaxPermSize=1024m -DXX:+CMSClassUnloadingEnabled -DXX:+CMSPermGenSweepingEnabled
So what am I doing wrong? Or is it my understanding that is off - is that Groovy function not really telling me the allocated memory? Any advice would be greatly appreciated.
Thanks! - Matt L.