[fix](metric) fix jvm_young_size_bytes. (#14562)

Co-authored-by: wangxiangyu@360shuke.com <wangxiangyu@360shuke.com>
This commit is contained in:
wxy
2022-11-29 09:10:48 +08:00
committed by GitHub
parent 7513c82431
commit 2295ab24b0

View File

@ -71,7 +71,7 @@ public class JvmStats {
}
pools.add(new MemoryPool(name,
usage.getUsed() < 0 ? 0 : usage.getUsed(),
usage.getMax() < 0 ? 0 : usage.getMax(),
usage.getMax() < 0 ? heapMax : usage.getMax(),
peakUsage.getUsed() < 0 ? 0 : peakUsage.getUsed(),
peakUsage.getMax() < 0 ? 0 : peakUsage.getMax()
));