1 year ago

#292671

test-img

Jdamian

Java max values for Eden Space and Survivor Space are -1. Why?

A WildFly 10.1.0 server using Java 1.8.0_202 reports their max values for Eden Space and Survivor Space are both -1 (MBean via JMX) and 0 (via SNMP):

MBean

java.lang:type=MemoryPool,name=G1 Eden Space/Usage/max (Long) = -1
java.lang:type=MemoryPool,name=G1 Survivor Space/Usage/max (Long) = -1

SNMP

.1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.13.4 = Counter64: 0
.1.3.6.1.4.1.42.2.145.3.163.1.1.2.110.1.13.5 = Counter64: 0

The mismatch between SNMP and MBean has been clarified in this other question.

The Java process is launched with the following options:

-Xms4096m
-Xmx16384m
-XX:MetaspaceSize=256m
-XX:MaxMetaspaceSize=512m
-XX:MinMetaspaceFreeRatio=20
-XX:MaxMetaspaceFreeRatio=50
-XX:+UseG1GC
-XX:MaxNewSize=3584m
-XX:NewSize=3584m
-XX:SurvivorRatio=6

Is correct that configuration?

Why does this happen?

How can it be solved?

java

memory-management

jvm

jmx

snmp

0 Answers

Your Answer

Accepted video resources