-XX:+PrintGC -XX:+PrintGCDetails
This will print GC. In my case, it prints:
[GC (Allocation Failure) [PSYoungGen: 348192K->32K(348672K)] 356792K->8632K(1048064K), 0.0111518 secs] [Times: user=0.00 sys=0.00, real=0.01 secs]
This means that the Parallel Garbage team is being used for the younger generation. “Refusal of distribution” means that garbage collection has begun because of a lack of space in the heap of the younger generation.
Alex T May 19 '16 at 12:56 2016-05-19 12:56
source share