RE: Memory GC

"Tim Anderson" <[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
> From: Eric K
> 
> I am trying to figure out why JVM full GC is occurring so 
> often in my OpenJMS Server.
> I am using version 0.7.7-alpha-1. 
> So I ended up starting an empty/clean 0.7.7-alpha-1 server 
> straight from the .tar and am see a Full JVM GC every 60 
> seconds.  There is absolutely NO activity using this server, 
> so it is not the JVM thinking it needs to 
> GC.   I have tried to change GarbageCollectionConfiguration 
> attributes 
> in the openjms.xml, but this does not change the behavior I 
> am seeing of every 60 seconds.  As extra verification I added 
> a command line switch to the JVM to disable explicit GC and 
> the behavior stopped, so it is something inside OpenJMS which 
> is explicitly calling gc().
> 
> Why is this happening? 
> Why does OpenJMS need to garabage collect so often? or for 
> that matter, Why does OpenJMS need to call JVM gc() at all?

OpenJMS doesn't invoke the garbage collector explicitly.
However, there is a JVM thread named "GC Daemon" which periodially
does invoke System.gc() - this is probably what you are seeing.
In JDK 1.3.1, the "GC Daemon" thread is an instance of sun.misc.GC$Daemon

-Tim




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.