I am getting java.lang.OutOfMemoryError: PermGen space
, upon analyzing the hprof
, I found that
One instance of "org.apache.jasper.compiler.JspRuntimeContext" loaded by
"org.jboss.mx.loading.UnifiedClassLoader3 @ 0x772dd7f80"
occupies 8,30,89,712 (29.32%) bytes.
The memory is accumulated in one instance of
"java.util.concurrent.ConcurrentHashMap$Segment[]" loaded by
"<system class loader>"
Using Jboss server.
Found one similar at : JVM HeapDump: The memory is accumulated in one instance of "java.util.concurrent.ConcurrentHashMap$Segment (but related to tomcat)
What is the cause/solution of this problem? Tell me if I should provide more information.
by using eclipse IDE you can change the VM argument
double click on the server > open Lunch Configuration > Arguments > VM Arguments
and append below two lines in your VM Arguments field
-Xms256m -Xmx1024m -XX:+DisableExplicitGC -Dcom.sun.management.jmxremote
-XX:PermSize=256m -XX:MaxPermSize=512m
it will sure solve your problem