scott miles
scott miles

Reputation: 1517

visualvm does not reflect the correct metaspace size?

I am using jdk1.8.0_60 . I have set jvm argument as -XX:MaxMetaspaceSize=1536m to set the max metaspace size.

But in jvisualvm, i still see it 1GB. Is visualvm not updated to reflect the latest mestaspace size ?

Upvotes: 2

Views: 1304

Answers (2)

z atef
z atef

Reputation: 7689

Use _JAVA_OPTIONS instead of JAVA_OPTS, so the settings are system wide

export _JAVA_OPTIONS="$_JAVA_OPTIONS  -XX:MaxMetaspaceSize=1536m"

Upvotes: 0

Tomas Hurka
Tomas Hurka

Reputation: 6991

This is JDK bug. See original VisualVM report and corresponding JDK bug 8077987.

Upvotes: 1

Related Questions