What makes you think the GC should run? Are you out of memory? The GC will
not run in many situations unless it has a need to.

HTH - Richard

-----Original Message-----
From: Benjamin Chu [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 29, 2006 8:25 PM
To: Tomcat Users List
Subject: When does the "MarkSweepCompact" Garbage Collector perform GC?

 Hello! Now I am using the jconsole to monitor the heap memory usage of the
tomcat 5.5. I've constructed a testbed to test the performance of the
applications running on the tomcat. However, the jconsole shows that the
"MarkSweepCompact" Garbage Collector never does its job. The only two ways
to make this garbage collector to perform GC are:

<1> I push the button "perform GC" shown on the "Memory tab" of the jconsole
<2> I insert the code "System.gc()" into the servlets.

I think both of these two ways are not good, and this garbage collector
should perform GC automatically (in my opinion). I just wonder when or under
which conditions the "MarkSweepCompact" Garbage Collector would perform GC.
Or actually there is something wrong with my configuration so it doesn't
perform GC?
Thank you very much!



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to