Question : permGem space

Hi,
 I have a problem with my jboss server, the exception is "permGem space" its the same for all applications in jboss, I'm getting this error after deployed a richFaces app., the server works fine for a few hours, then, every request for every application throws the PermGem space exception, to fix the problem i have to restart the server.

can you tell me an idea to fix my problem?
Code Snippet:
1:
2:
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/bbws].[Prospectos]] Servlet.service() for servlet Prospectos threw exception
java.lang.OutOfMemoryError: PermGen space

Answer : permGem space

You can set the perm gen size using the following
environment variable

JAVA_OPTS=-XX:MaxPermSize=256m

Basically, "-XX:MaxPermSize" switch of JVM allows you to set
perm gen size.
Random Solutions  
 
programming4us programming4us