Comment by pjmlp
For proper statistics use Visual VM or Flight Recorder, if using an OpenJDK derived JVM implementation.
Also note that not all JVMs are made alike, and there are plenty to chose from.
For proper statistics use Visual VM or Flight Recorder, if using an OpenJDK derived JVM implementation.
Also note that not all JVMs are made alike, and there are plenty to chose from.
When using the `-XX:+PerfDisableSharedMem` workaround, VisualVM cannot attach to the running process anymore.