[jboss-user] [EJB/JBoss] - Re: PermGen memory leak

icecuber do-not-reply at jboss.com
Tue Oct 3 07:57:41 EDT 2006


"stnor" wrote : We are experiencing severe problems with perm gen leaks in the server with detaching entities (with relations).
  | 
  | Tested on Jboss 4.0.4 with EJB3 RC9 and different JVMs up to latest 1.6.0.
  | 
  | There is a lot of classloading going on from javassist it seems that fills perm gen?
  | 
  | We can't use @Remote ejbs at all, in our fairly large webbapp. @Local interfaces work well.

We have the same problem we're using Jboss 4.0.4 with EJB3 RC9 with 1.5. jvm... but we NEED Clustering!!! is it possible to have Clustering without @Remote ejbs!?!?!?!?

i Found an interesting article on memory management/watch

http://www.informit.com/guides/content.asp?g=java&seqNum=250&rl=1

with these info i see that perm gen leaks comes when the perm gen space is close to the limit whatever it is... we try with the default 64 mb and 128 mb and the problem shows up when we're close about 2/3 mb to the limit

i found a bug on:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6250214

it's for mustang(b39) version...  

IMHO the most interesting workarounds is to launch the jvm with the params

-XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled

that enable the permGen to be garbage collected



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

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



More information about the jboss-user mailing list