I encounter java out of memory: perm gen exception
. I tried to resolve it by expanding the java heap size, but unable to solve it. How can I increase the memory?
Asked
Active
Viewed 316 times
-5

Martin Schröder
- 4,176
- 7
- 47
- 81

efi
- 11
- 4
-
is it for standalone java app or a webapp in a web container? – Juned Ahsan Nov 04 '13 at 16:36
-
2Have you tried search? http://stackoverflow.com/questions/88235/dealing-with-java-lang-outofmemoryerror-permgen-space-error – Roman-Stop RU aggression in UA Nov 04 '13 at 16:36
-
web container, IDE: eclipse, server: apache tomcat. – efi Nov 04 '13 at 16:39
-
This article is very well explained [Tomcat Memory Inside Eclipse](http://www.genericarticles.com/mediawiki/index.php?title=How_to_increase_tomcat_memory_inside_eclipse) – psabbate Nov 04 '13 at 16:54
1 Answers
2
You need to use a directive like this when starting Java: -XX:MaxPermSize=128m
PermGen is where class definitions and such are stored. It's not part of the same body of memory that is referenced by things like Xmx
and Xms
.

Mike Thomsen
- 36,828
- 10
- 60
- 83