[jboss-user] [JBoss Seam] - Re: java.lang.out of memory error permgen space

alexeinov do-not-reply at jboss.com
Wed Jul 11 04:53:19 EDT 2007


"saeediqbal1" wrote : Is it safe to use JRockit with Seam?Thanks.
What is "safe"? 

I'm using JRockit with Seam, it works. It cannot solve memory leak problems that exist in your application, container or libs though.

JRockit survives longer if a ClassLoader is leaking because it holds all allocated objects in the same heap. The dreaded PermGen error does not occure in it since there's no separate PermGen. 

Sun's JVM has two allocation areas: heap and non-heap, PermGen is a section of non-heap area. When a ClassLoader leaks, PermGen runs out of megabytes quickly, and here you are: Out Of Memory PermGen error.

When a ClassLoader leaks in JRockit, it leaks in a main heap allocation area, which is much bigger, hence it takes longer time to exhaust it.

It's not safe to run leaking code, and JRockit does not make it safer, though you get more time between crashes.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062850#4062850

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062850



More information about the jboss-user mailing list