tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trung Nguyen" <trung.ngu...@globalcompliance.com>
Subject RE: Why getting this error?
Date Mon, 03 Oct 2005 13:45:05 GMT
Ritchie,

No, it's not in server.xml, It's in $TOMCAT_HOME/bin/catalina.sh, add this line below:

JAVA_OPTS="-server -XX:MaxPermSize=256m"

Hope this help....

--Trung


-----Original Message-----
From: Ritchie Gillam [mailto:gillamr@halifax.ca]
Sent: Monday, October 03, 2005 9:34 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: Why getting this error?


Thanks Peter!  Can you provide an example please?   Is this defined somewhere in the server.xml
file?

Thanks

Ritchie Gillam
Programmer Analyst, Information Services, Halifax Regional Municipality
Email: gillamr@halifax.ca
Phone: (902) 490-6167
Fax: (902) 490-6583

>>> Peter.Crowther@melandra.com 10/03/05 10:29 am >>>
> From: Ritchie Gillam [mailto:gillamr@halifax.ca] 
> java.lang.OutOfMemoryError: PermGen space

Although your Java virtual machine has enough memory allocated to it,
something (probably the number of classes being loaded, or the number of
times you're reloading the webapp) is causing the permanent generation
to fill up.  This holds class files, for example.  PermGen defaults to
64 Mbytes, no matter how much heap space is allocated to Java.

Increase the memory allocated to PermGen using eg. -XX:MaxPermSize=128m
to double it.

		- Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org 
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message