We dealt with this just the other day.  It's not straightforward but try
setting -XX:PermSize & -XX:MaxPermiSize on the JVM.

Set the first to whatever you think you'll need day to day - this is
what it'll start at.  Set the second to whatever you can spare
overall...

The perm gen space is used to cache the binaries of your class files.
If your app references lots of classes then you'll need more perm gen
space.  Since the classes only need loading once per classpath then
traffic is not directly related.

HTH,

Cheers

Paul Hunnisett

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of [EMAIL PROTECTED]
Sent: 27 November 2008 09:10
To: [email protected]
Subject: java.lang.OutOfMemoryError: PermGen reloading context in tomcat

Hi Scott,

i'm getting a "java.lang.OutOfMemoryError: PermGen" space ever when i
reload 
my tomcat context for a few times. 
Why ? How can i solve this problem ? 
Maybe it solve just setting JVM property ? How ? (the server has 2GB of
RAM)

thanks in advance
Giorgio


_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas


This incoming email to UWE has been independently scanned for viruses by
McAfee anti-virus software and none were detected


This email was independently scanned for viruses by McAfee anti-virus software 
and none were found
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to