Combined: https://blog.csdn.net/haoranhaoshi/article/details/93739387
We know that IDE with administrator privileges to start and run a Java program in order to be captured jvm tool to the current Java process. So, jvisualvm CPU monitor display are not subject JVM support, jconsole connection failure problem, it is natural and should think about the permissions, cmd to administrator privileges boot, then jvisualvm and jconsole, or as in the JDK administrator privileges to run jvisualvm and jconsole, we can solve these two problems.