I have modify the catalina.bat rem JAVA_OPTS "-XX:MaxPermSize=5024M". But am still getting perm gem. am using grails but deployed to tomcat as a war file. Anything I did wrongly?
Asked
Active
Viewed 121 times
2 Answers
2
In windows batch files, rem
at the start of a line signifies a comment. You will need to remove that for the line to have any effect on the batch file. Try using jconsole to confirm that your settings are being applied. If you are running out of memory after setting perm gen to 5Gb (which also assumes you are running a 64 bit jvm) you should check out one of the many other questions on this starting here.
-
Yeah, 5GiB for PermGen seems ... insanely high. OP likely has a memory leak. – Christopher Schultz Jun 11 '12 at 18:22