0

I'm running Tomcat 7 as a windows service in a Windows Server 2008 Machine. I've got a Java.lang.OutOfMemoryError: PermGen space so I'm trying to increase its PermGen memory heap. So I specify this line at the end of JVM options:

-XX:PermSize=512m -XX:MaxPermSize=512m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -XX:+HeapDumpOnOutOfMemoryError

As specified in the picture below:

enter image description here

The server is properly launched, however I cannot get the permgen size increased. When I enter Tomcat's management GUI, I can see the memory near the limit (the line at the end, PS Perm Gen):

enter image description here

So the application gets stuck after a while. Why is not Tomcat changing this value?

Aritz
  • 30,971
  • 16
  • 136
  • 217

1 Answers1

1

As of my experience you are allowed to put only one option per line.

Gren
  • 1,850
  • 1
  • 11
  • 16
  • @XtremeBiker - Then you can share the answer here. – Nivetha T Jan 30 '15 at 14:33
  • I am struggling with same [problem](http://stackoverflow.com/questions/39737294/permgenspace-outofmemoryerror-maxpermsize-showing-default-value-always-rather) eventhough it is one option per line. – User0123 Sep 28 '16 at 05:04