当前位置: 动力学知识库 > 问答 > 编程问答 >

java - JVM ID not found

问题描述:

I've recently downloaded and installed WebSphere Application Server 7.0 on Windows 2003.

I wanted to do a jstat (JDK 1.6) to probe the JVM but I kept getting " not found" message.

Any idea why this is happening?

Nicholas

网友答案:

jstat requires a vmid to specify the VM to attach to. Are you providing one?

网友答案:

If you are trying to monitor a process that is owned by a different user, you can get permission errors. Work around these by running a jstatd server with a custom, permissive policy.

jstatd -J-Djava.security.policy=/home/root/.jstatd.all.policy

.jstatd.all.policy:

grant codebase "file:/usr/java/latest/lib/tools.jar" {
   permission java.security.AllPermission;
};

You will need to provide the correct path to your own tools.jar. Once jstatd is up and running, you should be able to run your jstat command.

分享给朋友:
您可能感兴趣的文章:
随机阅读: