[jboss-user] [Beginners Corner] - Real Memory and JBoss on a Mac

sammcgee do-not-reply at jboss.com
Thu Jan 24 17:35:03 EST 2008


This is both a general and a specific question. Thanks for any help or information.

I'm running a J2EE app with JBoss 4.0.5 on a dual Intel Mac and "seem" to have a memory leak. I say "seem" because I'm not sure what to expect anymore.

The bottom line issue is that the "Real Memory" allotted to JBoss continues to grow until I get a OutOfMemory error. However, I have been running the YourKit Java Profiler and the Java garbage collection seems to be working the way it should. Or at least, after a reasonable amount of time, the heap memory sizes all return to their original numbers -- Allocated and Used.

I am purposefully stressing the system by creating very large Hashtables, so the Used memory (in YourKit) does get large quickly, and the Real Memory tracks this growth. But once the Java gc is done and Used memory drops back down, the Real Memory stays where it is.

The questions are:

Is this not unexpected? Should I expect the system to release the Real Memory after a certain amount of time or is its only option to grow until the app (JBoss) is restarted?

Is there a way to determine what it is that is taking up this Real Memory or to force it to be released without an app restart?

Anyone out there know of a JBoss memory leak that would explain this?

Thanks for any help.


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

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



More information about the jboss-user mailing list