The JDK version I used was the 1.6.0_37 version, the operating system is Windows XP, and today I want to use some management tools under the%java_home%/bin/directory, and the results are in trouble. You cannot list a Java virtual machine running locally by using the JPS command, and you can use JVISUALVM to prompt "A local Java application cannot be detected."
The cause of this problem can be seen: http://docs.oracle.com/javase/1.5.0/docs/guide/management/faq.html#win1
There are about 2 reasons:
1, the operating system's temporary file directory is located in the disk format is not NTFS (can be viewed through the echo%tmp% command)
2. The operating system user name contains underline underscore (can be viewed via echo%username%)
Check the next, my case is the first: the TMP directory is located on the disk is FAT32 format
The workaround is simple, replace the path to the TMP folder (where the disk is in NTFS format). What you need to mention here is that if you add the VM startup parameters when the target JVM is running
-xx:+perfbypassfilesystemcheck can also solve the problem
JAVA-XMS20M-XMX20M-XMN10M-XX:+PERFBYPASSFILESYSTEMCHECK-CP Classes/direct. Testdirectmemo
Reasons and solutions for "unable to detect local Java applications" by using the JVM management tool JVISUALVM