1
votes

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

3
Can you share the command line you are using and the output you get? - brabster
Hi, I haven't played with this jstat. I was wondering if jstat is supported in a IBM JDK or is something that is supported only in a Sun/Oracle JVM - Manglu

3 Answers

4
votes

It can also be because that this flag is enabled in your JVM args

-XX:+PerfDisableSharedMem

Either you can remove this from your arguments our disable this flag as

-XX:-PerfDisableSharedMem

0
votes

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

0
votes

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.