Reputation: 1517
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
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
Reputation: 6991
This is JDK bug. See original VisualVM report and corresponding JDK bug 8077987.
Upvotes: 1