I am currently getting java.lang.OutOfMemoryError: PermGen space . I am using Jetty and Linux Ubuntu. I tried to read and try the various solutions that were provided in previous similar questions, but I did not succeed. One such question was
Working with java.lang.OutOfMemoryError: PermGen space error
But these solutions seem to use Tomcat instead of Jetty. I continue to extract an error from memory if I reinstall my service several times. For example, to check this, I go to my webapps folder and run touch * .xml to update the timestamp and then restart jetty and I get an error from memory. In my folder with the pier (the one that contains bin, doc, etc., Lib, logs, modules, start.jar) I run
java -jar ../start.jar
But that gives me an error. Then I tried what I read in other examples, such as:
java -jar ../start.jar JAVA_OPTS="-Xms256m -Xmx512m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled"
or
-XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled
or
-XX:MaxPermSize=128m
Then when I go to firefox and go to localhost:8080 and update, in the terminal I keep getting an error
java.lang.OutOfMemoryError: PermGen space
source share