spurious reportings of System.gc()???

Jaromir Hamala jaromir.hamala at gmail.com
Fri Apr 4 11:32:48 UTC 2014

Hi Kirk

On Fri, Apr 4, 2014 at 12:23 PM, Kirk Pepperdine <kirk at kodewerk.com> wrote:
> I mentioned RMI in my original email along with the call developers can
> make to System.gc() or Runtime.gc(). However I would expect that these
> calls result in a Full collection but all the log records (with the
> exception of the records labeled as Full GC) look like this; [...]

What are the exceptions look like? I'm running System.gc() on Java8 and I'm
getting this in the GC log:

[GC (System.gc()) [PSYoungGen: 41984K->624K(611840K)]
41984K->632K(2010112K), 0.0010397 secs] [Times: user=0.00 sys=0.01,
real=0.00 secs]
[Full GC (System.gc()) [PSYoungGen: 624K->0K(611840K)] [ParOldGen:
8K->500K(1398272K)] 632K->500K(2010112K), [Metaspace:
2926K->2926K(1056768K)], 0.0056682 secs] [Times: user=0.02 sys=0.00,
real=0.00 secs]

There is indeed a Full GC line, but there is a line with Young GC results
as well. The attachment has been probably swallowed by the mailing list.


More information about the hotspot-dev mailing list