Closed 1a2s3d4f1 closed 1 year ago
@dmitripivkine @amicic
@LinHu2016 FYI
Thanks @1a2s3d4f1 for reporting the issue, I will try to reproduce the issue locally and investigate the case.
@LinHu2016 I reproduced this issue by click button "All Instances" on menu of hmcl when I used jconsole to get memory information. verbosegc.20221206.002531.1348.zip
looks like both mxbean reporting and verbose gc log doesn't handle the case that free region count after GC is smaller than Eden region count correctly, both reporting still assume defined eden size, which could cause "reserved size" is smaller than 0.... looks like current code will use whole free regions as eden for the case, just want to confirm if it is correct behaviour before I update mxbean reporting code.
Java -version output
Summary of problem
Sometimes, using balanced gc without -Xmx and -Xms options could cause mxbean gcNotification thrown error. It could happen on windows or linux platform. I found this issue is easier happend on vitual machine(vitual box).
This program is hmcl. It a game launcher. This issue can happen on minecraft too.
Diagnostic files
Launch options:
java -Xgc:enableArrayletDoubleMapping -Xverbosegclog -Xgcpolicy:balanced -Xdump:none -verbose:sizes -jar HMCL-3.5.3.223.jar
Option "-Xgc:enableArrayletDoubleMapping" is nessary while running hmcl with balanced gc. Use -verbose:sizes" to view memory inofmation.HMCL(A game launcher) throw error:
Verbosegc: verbosegc.20221203.132939.2652.zip