giribt / jvmtop

Automatically exported from code.google.com/p/jvmtop
0 stars 0 forks source link

jvmtop sees only itself running in AIX #35

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Running jvmtop on AIX with WebSphere JVMs
2.
3.

What is the expected output? What do you see instead?
Seeing all running JVMs

What version of jvmtop are you using? On what operating system?
The latest (just downloaded)

Please post the output of the following commands:
java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM AIX build ca142-20090307 (SR13) (JIT 
enabled: jitc))

echo $JAVA_HOME  (for unix/linux systems)

twausxwasapp57:/home/i262666 >echo $JAVA_HOME
/usr/java6

echo %JAVA_HOME% (for windows)

Please provide any additional information below.
When running jvmtop it sees only itself running. Most likely because the the 
security because the JVMs are run under the "wasadmin" account by the WAS 
administration. 

However, when I run the following command
ps -elf | grep java
all JVMs are displayed.

Appreciated your help

Original issue reported on code.google.com by igor.liv...@gmail.com on 4 Sep 2013 at 3:23

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi,
thanks for your report.

jvmtop does currently only officially support jvms with a version >= 1.6.0
All earlier jvms - which end-of-life date has been reached since years - are 
not supported.
The chances are high that this is one major cause of the problem and cannot be 
workarounded (beside upgrading your jvm)

The other important thing to understand is that jvmtop works totally differant 
than tools like "ps" or "top" do. 
There's a significant difference if you can see a process via ps (which is true 
for most - if not all - processes in a regular unix operating system) or a 
process which jvmtop can detect and attach.

jvmtop uses the java management APIs to detect and attach to other jvms.
There are several java security barriers (depending on the jvm and its 
configuration) which jvmtop cannot override. If this would be the case, the 
security mechanisms would become obsolete.

You should try running jvmtop under the "wasadmin" or "root" user or try 
lowering rmi security if this is an option for you.

I'm sorry that I do not see other options.
However, I would like to encourage everyone to submit patches to improve the 
attach compatibility, especially with very old jvms.

Original comment by patric.r...@gmail.com on 4 Sep 2013 at 6:17

GoogleCodeExporter commented 8 years ago

Original comment by patric.r...@gmail.com on 19 Aug 2014 at 8:26