Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OutOfMemoryError: PermGen space in debug mode on Jboss AS 7 and IntelliJ IDEA

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?

like image 302
Kirill Bazarov Avatar asked Nov 14 '12 14:11

Kirill Bazarov


People also ask

How do I increase PermGen space in Jboss?

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.

How to solve java lang OutOfMemoryError PermGen space?

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.

What causes PermGen space error?

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.


1 Answers

This should help:

vmoptions

Just add -Xmx512m -XX:MaxPermSize=300m to the VM options field.

like image 188
CrazyCoder Avatar answered Sep 28 '22 06:09

CrazyCoder