java - Minor GC but Eden space is not full -
minor gc used clean eden space, right? used jstat watch gc logs. there 95% minor gc occur when eden space 90% full. happens find eden space empty.
i use jdk7 , g1gc. program handles fifty thousand requests per second. every shortly pause cause gc obviously.
for other reasons gc decide perform minor collection?
jstat shows sampled data. example, if run jstat -gc <pid> 2s
, jstat shows snapshots of heap , gc states every 2 seconds.
hence, eden have been @ 100% when collection happened snapshot saw in jstat taken time after collection happened.
there other explanations too, example g1 collector collects eden before 100% full. allocation of huge object trigger gc when eden seems less full.
Comments
Post a Comment