I'm not certain about the "full" terminology, but a minor gc will sweep
the new generation in the heap.  These are common.   Major gc's harvest
free objects in the tenured generation.  There are different methods to
mark an object as good or bad in either GC..    copy works well in the
new since we assume most are dead upon creation anyway.   Where as
tenured objects tend to hang around longer so we don't want to copy over
all the good ones.. so mark-sweep or some other method is used.
Anyway, long story short, the complete GC is usually a bigger effort and
not as common.     There are 6 I think different gc's you can use now..


-----Original Message-----
From: David Kerber [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 13, 2006 12:54 PM
To: Tomcat Users List
Subject: "Full GC" vs regular GC?

Can somebody tell me what the difference is between a "full GC" and a 
regular "GC"?  Here's an excerpt from my jakarta-service log, when I 
have the verbose gc option set.  You can see that the total memory used 
drops hugely.  I was intentionally letting my app continue to run to see

what would happen when I got close to my max memory setting, and all 
that happened is that I got that "Full GC".  Up until then, I thought I 
had a slow (a few bytes per request) memory leak, but could not find 
it.  Now I can see that maybe I don't have one after all?

[2006-04-13 13:03:33] [info] [GC
[2006-04-13 13:03:34] [info] 126790K->120408K(130112K)
[2006-04-13 13:03:34] [info] , 0.3863446 secs]
[2006-04-13 13:05:30] [info] [GC
[2006-04-13 13:05:30] [info] 128536K->122004K(130240K)
[2006-04-13 13:05:31] [info] , 0.2881931 secs]
[2006-04-13 13:05:31] [info] [Full GC
[2006-04-13 13:05:31] [info] 122004K->22246K(130240K)
[2006-04-13 13:05:32] [info] , 0.8706296 secs]
[2006-04-13 13:08:05] [info] [GC
[2006-04-13 13:08:05] [info] 30438K->22346K(130176K)
[2006-04-13 13:08:05] [info] , 0.3083372 secs]
[2006-04-13 13:11:30] [info] [GC
[2006-04-13 13:11:30] [info] 30538K->22385K(130176K)
[2006-04-13 13:11:30] [info] , 0.3139466 secs]


Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to