Reasons and solutions for "unable to detect local Java applications" by using the JVM management tool JVISUALVM

Source: Internet
Author: User
Tags tmp folder

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.