When will G1 GC allocate objects in old generation directly

Roy Zhang roy.sunny.zhang007 at gmail.com
Thu Jan 30 16:05:12 UTC 2020


Dear JVM experts,

In my gc log, there are many objects are allocated to old generations
(ALLOC(Old) logs), current threshold is 15, my objects age is only 1, i.e,
these objects will not be promoted to old generations, i guess is there any
condition when objects will be allocated to old generations directly in G1
GC? Thanks in advance!

*Excerpt of GC log:*

grep "ALLOC(Old)" gc.log | wc -l
387
grep "thres" gc.log
Desired survivor size 1207959552 bytes, new threshold 15 (max 15)
Desired survivor size 1207959552 bytes, new threshold 15 (max 15)
- age   1:   37707272 bytes,   37707272 total

*JDK version: *
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)

Thanks,
Roy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20200131/5c0cd9af/attachment.htm>


More information about the hotspot-gc-use mailing list