exception - Dealing with "java.lang.OutOfMemoryError: PermGen space" error -


Recently I went to this error in my web application:

java.lang .OutOfMemoryError: Perm Gain Space

It is a special hibernate / JAPA + IceFAS / JSF application running on Tomcat 6 and JDK 1.6. Apparently this may happen once again for some time after re-deployment.

What else can be done to avoid it? How do I fix this problem?

The solution was to add these flags to the JVM command line when it was a tomcat:

  -XX: + CMSClassUnloadingEnabled -XX: + CMSPermGenSweepingEnabled   

You can do this by closing the Tomcat service, then the Tomcat / bin directory and the running tomcat6w. Exe Under the "Java" tab, add a log in the "Java Options" box. Click "OK" and then restart the service.

If you get an error The specified service does not exist as an installed service You should run:

  tomcat6w // ES / Servicename   

where sovereignname is the name of the server viewed as services. MSc

Source: Ork's comment.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -