2

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 ?

trincot
  • 317,000
  • 35
  • 244
  • 286
scott miles
  • 1,511
  • 2
  • 21
  • 36
  • We'll assume you're using a 64 bit JVM and run on a 64 bit operating system. True for both? Which OS? http://stackoverflow.com/questions/31075761/java-8-reserves-minimum-1g-for-metaspace-despite-maxmetaspacesize – duffymo Oct 23 '16 at 13:20
  • yes Duffymo that is correct – scott miles Oct 23 '16 at 13:29

1 Answers1

1

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

Tomas Hurka
  • 6,723
  • 29
  • 38