understanding the gc log

Hi,

I'm trying to understand the garbage collection log (1.4.2). I have log statements in there like:

14325.110: [GC 14325.110: [DefNew: 111691K->111691K(118016K), 0.0000206 secs]14325.111: [Tenured: 283068K->298347K(393216K), 4.1681840 secs] 394760K->298347K(511232K), 4.1683295 secs]

The way I read it is: nothing done on the New Generation and the tenured Generation even increased. But looking at the total heap, the total used memory after the garbage collection equals the total used memory in the tenured Generation making me believe that the New Generation is empty. Is there a display bug that the New Generation was completely cleared but only the log incorrect? But is it really possible to clear the New Generation up to the very last byte?

dirk

[798 byte] By [furballa] at [2007-10-3 0:45:03]
# 1
nm, I found the problem myself :-)dirk
furballa at 2007-7-14 17:39:40 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2

> Hi,

>

> I'm trying to understand the garbage collection log

> (1.4.2). I have log statements in there like:

>

> 14325.110: [GC 14325.110: [DefNew:

> 111691K->111691K(118016K), 0.0000206 secs]14325.111:

> [Tenured: 283068K->298347K(393216K), 4.1681840 secs]

> 394760K->298347K(511232K), 4.1683295 secs]

>

> The way I read it is: nothing done on the New

> Generation and the tenured Generation even increased.

> But looking at the total heap, the total used memory

> after the garbage collection equals the total used

> memory in the tenured Generation making me believe

> that the New Generation is empty. Is there a display

> bug that the New Generation was completely cleared

> but only the log incorrect?

Yes, exactly.

> But is it really possible

> to clear the New Generation up to the very last

> byte?

Yes, all the survivors in the New Generation were compacted

up into the Old Generation. (The whole heap was collected.)

ramki_at_jdca at 2007-7-14 17:39:40 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
If I understood, you are telling us there's a bug in displaying GC log traces. Is an "official" BugId for this?Thanks.
david_m_munoza at 2007-7-14 17:39:40 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 4
I don't believe there's an official bug for this yet.We do hope to address this problem in the next release,so I'll post the bug id once it is available, so you can track it.
ramki_at_jdca at 2007-7-14 17:39:40 > top of Java-index,Java HotSpot Virtual Machine,Specifications...