On Linux, some jcmd commands cannot be used

285 Views Asked by At

some jcmd parameters are available on macos or windows, but not on Linux, such as VM.metaspace. If I want to use this parameter in Linux, what should I do?

My JDK versions are all 11

1

There are 1 best solutions below

0
AlBlue On

The metaspace is only visible on Java 8 and above; before then, it was the permgen. You can find out what flags are available by running 'jcmd help' for the JVM that you're talking to.