I am using IntelliJ IDEA
and JBOSS AS 7
. When I am trying to deploy my app in debug mode I occur this exception java.lang.OutOfMemoryError: PermGen space
and server is not answering. But if I am using Eclipse, there is no such problem with the same server! How I can solve this problem?
Restart your JBOSS because each time you deploy application, you increase the amount of data in the PermGen. You can also use JRocket JVM instead of the Sun JVM. it doesn't have any PermGen in its Garbage Collector algorithm.
Solution To fix it, increase the PermGen memory settings by using the following Java VM options. -XX:PermSize<size> - Set initial PermGen Size. -XX:MaxPermSize<size> - Set the maximum PermGen Size. In the next step, we will show you how to set the VM options in Tomcat, under Windows and Linux environment.
lang. OutOfMemoryError: PermGen Space is a runtime error in Java which occurs when the permanent generation (PermGen) area in memory is exhausted. The PermGen area of the Java heap is used to store metadata such as class declarations, methods and object arrays.
This should help:
Just add -Xmx512m -XX:MaxPermSize=300m
to the VM options field.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With