请教:jvisualvm启动提示“不能检测到Java应用”

wanglingzhong 2009-10-23 11:38:36
网上搜了,没有解决,大家帮忙
...全文
718 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
AldisZhan 2009-10-23
  • 打赏
  • 举报
回复
哈哈 来晚 现在只能纯粹帮顶了
wanglingzhong 2009-10-23
  • 打赏
  • 举报
回复
Friends answering my question, Thank you all the same!!

Now give out Points!!!
wanglingzhong 2009-10-23
  • 打赏
  • 举报
回复
问题基本解决,最起码不报错了~~

这是在Java 官网上找到的~

There are two potential work-arounds for this issue:

Set the TMP environment variable to refer to a directory on an NTFS file system, or any file system that supports persistent access control lists. Note that this file system should be local to the machine. Setting this option for target applications is application specific. To set this variable in a command prompt or in a batch script, simply enter the following:

set TMP=path

The environment variable can be set globally by adding it to the list of environment variables in the System Properties (Control Panel->System, select the "Advanced" tab and click on the "Environment Variables" button). Through this interface, you can choose to set the variable for all processes run by the current user or globally as a system variable for all processes run by the system.

The TMP variable must refer to the same location for both the monitored applications and the jvmstat tools.

Changing the TMP environment variable to refer to an NTFS type file system is not always a viable option. For these cases, the HotSpot JVM provides a mechanism to bypass the the file system type check. However, using this mechanism instructs the HotSpot JVM to create the jvmstat shared memory without any access controls, allowing access to the instrumentation exported by the JVM to any user on the system.

To bypass the file system type check, set the -XX:+PerfBypassFileSystemCheck on the java command line for both the applications you want to monitor and for the jvmstat tools. Setting this option for target applications is application specific. For the jvmstat tools, the following environment variable can be set before running any of the commands:

set VMARGS=-XX:+PerfBypassFileSystemCheck

For the jvmstat tools bundled with JDK 5.0, include the following option on the command line (jps command used for illustrative purposes):

jps -J-XX:+PerfBypassFileSystemCheck

我的文件系统是FAT32~
feng_jyie 2009-10-23
  • 打赏
  • 举报
回复
但不是所有的jdk6都有,jdk1.6.0_07才支持。
shang_zchao 2009-10-23
  • 打赏
  • 举报
回复
jvisualvm.exe 一个图形化的Java虚拟机 貌似只有jdk1.6有

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧