agebhar1 / jvmtop

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

Encountered error msg while invoking jvmtop #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi team,
We encountered error msg as could not attach to process while trying to invoke 
jvmtop with pid.

What steps will reproduce the problem?
1.Execute the command ./jvmtop.sh <pid>
2.we ensured whether the process is running.

What is the expected output? What do you see instead?
Expected output list of top java threads but what we got is listed below
JvmTop 0.8.0 alpha - 10:53:13,  amd64, 24 cpus, Linux 2.6.18-23, load avg 4.26
 http://code.google.com/p/jvmtop

ERROR: Could not attach to process.

Linux version : RHEL 2.6.18-238.9.1.el5 #1 SMP Fri Mar 18 12:42:39 EDT 2011 
x86_64 x86_64 x86_64 GNU/Linux

While we tried with jvmtop without pid we got the below error 

JvmTop 0.8.0 alpha - 11:12:28,  amd64, 24 cpus, Linux 2.6.18-23, load avg 4.87
 http://code.google.com/p/jvmtop

  PID MAIN-CLASS      HPCUR HPMAX NHCUR NHMAX    CPU     GC    VM USERNAME   #T DL
10428 m.jvmtop.JvmTop  139m 10732m   10m  132m  0.38%  0.00% S6U20     root   12
20670 rapperSimpleApp [ERROR: Connection refused/access denied]
18605 rapperSimpleApp [ERROR: Connection refused/access denied]
19878 rapperSimpleApp [ERROR: Connection refused/access denied]
 9212 rapperSimpleApp [ERROR: Connection refused/access denied]
21223 rapperSimpleApp [ERROR: Connection refused/access denied]
29345 rapperSimpleApp [ERROR: Connection refused/access denied]
26537 rapperSimpleApp [ERROR: Connection refused/access denied]
 7799 rapperSimpleApp [ERROR: Connection refused/access denied]
19139 rapperSimpleApp [ERROR: Connection refused/access denied]
 4754 rapperSimpleApp [ERROR: Connection refused/access denied]

What version of jvmtop are you using? On what operating system?

jvmtop 0.8.0 OS = 

Please post the output of the following commands:
java -version
echo $JAVA_HOME  = /x/opt/sun/java-x86_64-1_6_0_20

Thanks
Sattish

Original issue reported on code.google.com by satti...@gmail.com on 30 Oct 2013 at 6:14

GoogleCodeExporter commented 9 years ago
Hi,

thanks for the bug report.

Two questions:

1. Are the to-be-monitored processes running with the same JDK as jvmtop is 
running?
2. Are you able to connect to the process, which jvmtop with the JDK tools 
jstack and jconsole? 

Original comment by patric.r...@gmail.com on 7 Nov 2013 at 7:36

GoogleCodeExporter commented 9 years ago
Hi Patric,

Thanks for the response.

Have listed my answers for your queries

1. Are the to-be-monitored processes running with the same JDK as jvmtop is 
running?
No we don't use jdk for the to-be-monitored processes rather we use IBM jre 1.6
2. Are you able to connect to the process, which jvmtop with the JDK tools 
jstack and jconsole? 
Yes we were able to connect to the process using jconsole and visualvm through 
jmx

Please review and let me know for further details.

Thanks
sattish.

Original comment by satti...@gmail.com on 8 Nov 2013 at 4:02

GoogleCodeExporter commented 9 years ago
Hi Sattish,

Ok, thanks you for your update!
Some more questions:

1.  Could you please execute the following two commands and tell me there are 
referring to the same directory/JDK?
type java
type jconsole

2. can you try setting the JAVA_HOME environment variable to the JDK from which 
your IBM jre 1.6 is part of and try to execute jvmtop and see if there's any 
difference?

3. If not, please run jvmtop with the following arguments:
jvmtop.sh --once --verbose

If there any exceptions are displayed, please post them here.

Cheers,
- Patric

Original comment by patric.r...@gmail.com on 8 Nov 2013 at 4:45

GoogleCodeExporter commented 9 years ago
Closing due to lacking information. If you're still encountering this issue, 
please file a new issue, answer the questions from comment #3 and refer to this 
issue.

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