Hi Anne-Marie
This looks like you have to adjust the PERM size. This is another
setting. The JVM has two typical memory settings:
a) Heap size
b) Perm size
The Heap size defines the amount of memory located for the JVM. It
allocates the "minimum" on startup (so the -Xms setting). If more
memory is required, the JVM allocates additional slices of 64M until
it reaches the "maximum" (setting -Xmx). This "slicing"
is performant, so if you know that you will need 512M of heap at some
stage, then set the "minimum" to 512M. This way your JVM will allocate
more memory on startup and might not even require any additional heap
memory.
The Perm size is the size of the stack. The Java method call stack can
grow very fast if you e.g. bootstrap a new Magnolia instance or do a
replication of a large Web Site. Since the error implies that your
Perm size is "mush", you might want to raise the Perm size. Use
setting: -XX:PermSize=256m.
So your JVM startup settings could look like
CATALINA_OPTS="-Xms512M -Xmx1024M -XX:PermSize=256m -
Djava.awt.headless=true"
This should help
Cheers
Giancarlo
On Apr 3, 2009, at 8:09 AM, Anne-Marie Scheidegger wrote:
Hi list
We recently moved a couple of our Magnolia apps to 3.6.5 and are
getting Perm-Gen OutOfMemoryExceptions. After increasing the memory
heap crash after crash to now:
CATALINA_OPTS="-Xms256M -Xmx1536M -Djava.awt.headless=true"
it seems to me that there must be a leak somewhere.
The app with 1536MB RAM contains more than one site (13 at this point,
some very small, total amount of data less than 1GB based on backup
xls files), so I don't expect it to run with 128MB. But 1536MB? That's
not an "ultra-low memory footprint", is it?
Is anyone else experiencing similar problems? How much memory do your
apps use? Does memory use increase proportionally to increase in data?
Are there tricks to keep memory usage low? Did memory usage increase
from 3.5 to 3.6?
Thanks for any help!
Anne
OS: Linux
Java: 1.5
Tomcat: 5.5.27 (starting Tomcat with catalina.sh start, having set
CATALINA_OPTS in setenv.sh)
Magnolia: 3.6.5 CE, with DMS, no workflow, versioning not enabled,
doing nothing special with caching, Jackrabbit NOT replaced, no
external database
Did I forget an important piece of info?
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------