Java G1 GC Processing Reference objects works slow

前端 未结 2 1207
傲寒
傲寒 2021-02-08 05:59

I have hit counter running on Java. It works 24 hours and hits pass at about 100 times per second. During the day GC processing time slowly rises from 20-60 ms till 10000-60000

2条回答
  •  生来不讨喜
    2021-02-08 06:06

    Its important that all my runs were with Yourkit profiler. I installed fastdebug build of OpenJDK7. At this version there is a parameter -XX:+TraceReferenceGC. After running with this parameter gc log shown about 5000 some finalizers. This problem was resolved by turning off socket probes of Yourkit.

提交回复
热议问题