laghdaf / jvmtop

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

ERROR: Could not attach to process. #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
 JvmTop 0.6.0 alpha          amd64,  4 cpus, Linux 2.6.18-19
 http://code.google.com/p/jvmtop

ERROR: Could not attach to process.

java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)

Original issue reported on code.google.com by BM888...@gmail.com on 12 Jul 2013 at 3:58

GoogleCodeExporter commented 9 years ago
You're invoking jvmtop with a specific PID, are you?
If this is true, try executing jvmtop without a specific PID, and look at the 
error status of this PID.

Most probably, the access is denied due to permission/security related reasons.
Are you invoking jvmtop with the same user (or root) as the target PID is 
running?

Original comment by patric.r...@gmail.com on 12 Jul 2013 at 4:00

GoogleCodeExporter commented 9 years ago
target jvm run as jboss user.
I run jvmtop as root.

Original comment by BM888...@gmail.com on 16 Jul 2013 at 4:04

GoogleCodeExporter commented 9 years ago
Can you tell me if you're able attach to the same process using jstack (as 
root)?

Original comment by patric.r...@gmail.com on 17 Jul 2013 at 6:29

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I'm getting this in Cassandra server while running jvmtop as root, perhaps you 
should enable logins and providing security credentials. 

 JvmTop 0.8.0 alpha - 04:42:07,  amd64, 24 cpus, Linux 3.2.0-48-, load avg 1.00
 http://code.google.com/p/jvmtop

  PID MAIN-CLASS      HPCUR HPMAX NHCUR NHMAX    CPU     GC    VM USERNAME   #T DL
31373                 2173m 11980m   33m  130m  0.20%  0.00% O7U40 cassandr  
602   
 4489 m.jvmtop.JvmTop   71m 7148m    9m  130m  0.08%  0.00% O7U40     root   14   
 9400 -standalone.jar [ERROR: Connection refused/access denied] 

Original comment by nader.ga...@kenshoo.com on 18 May 2014 at 8:45

GoogleCodeExporter commented 9 years ago
@nader.ganayem
Please check the FAQ. 
https://code.google.com/p/jvmtop/wiki/FAQ

Especially your answers to the last two bullets of the second question would be 
interesting.

Original comment by patric.r...@gmail.com on 18 Aug 2014 at 3:18