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, 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.
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to