After 2 to 3 deployments, I'm continuously getting PemSpace Error in windows8. I have been trying with different approaches like setting pemgen variables as java start parameter in Apache but no idea worked .could anyone help me in resolving this.
Asked
Active
Viewed 158 times
1
-
Check this http://stackoverflow.com/questions/88235/dealing-with-java-lang-outofmemoryerror-permgen-space-error?rq=1 – user987339 Apr 03 '14 at 20:14
-
1Go to java 8 as there is no more such an error... – Stathis Andronikos Apr 03 '14 at 20:19
-
1@StathisAndronikos that is not always possible =\ ... – Luiggi Mendoza Apr 03 '14 at 20:21
-
You mean that you changed the server configuration variable `XX:MaxPermSize` and nothing happened? – Stathis Andronikos Apr 03 '14 at 20:27
-
What is the size of your `.war` file? – Stathis Andronikos Apr 03 '14 at 20:42
-
Where did you set the permgen variable? Are you launching tomcat from eclipse? – Simon Apr 03 '14 at 23:15
-
War file size is 31MB and I tried setting it in control panel ->administrative tools -->services -->apache tomcat console -->start parameters – Srikanth Malyala Apr 04 '14 at 07:13
-
Thanks stathis for saying this – Srikanth Malyala Apr 04 '14 at 07:24
1 Answers
1
Hot deployments tend to cause perm-gen bloat. There's not much you can do about it other than restarting Tomcat after each deployment.
Use jstat
or add -verbose:gc
to the command line to monitor the Perm Space.

Alastair McCormack
- 26,573
- 8
- 77
- 100