Comments (5)
Hi,
in which OS are you seeing this problem?
Does it print the exception only once after starting jvmtop?
If so does jvmtop crash after throwing this exception or does it run normally
afterwards?
Original comment by [email protected]
on 18 Jun 2013 at 10:30
from jvmtop.
Hi,
1. I am using Fedora release 13 (Goddard) OS.
2. Yes. It is printing only once. And exiting jvmtop.
below exception is thrown.
[[root@yamini-dt Downloads]# ./jvmtop.sh 9092
java.io.IOException: Agent JAR loaded but agent failed to initialize
at com.jvmtop.openjdk.tools.LocalVirtualMachine.loadManagementAgent(LocalVirtualMachine.java:378)
at com.jvmtop.openjdk.tools.LocalVirtualMachine.startManagementAgent(LocalVirtualMachine.java:137)
at com.jvmtop.openjdk.tools.ProxyClient.tryConnect(ProxyClient.java:367)
at com.jvmtop.openjdk.tools.ProxyClient.connect(ProxyClient.java:349)
at com.jvmtop.VMInfo.attachToVM(VMInfo.java:207)
at com.jvmtop.VMInfo.processNewVM(VMInfo.java:163)
at com.jvmtop.VMDetailView.<init>(VMDetailView.java:26)
at com.jvmtop.JvmTop.main(JvmTop.java:35)
Caused by: com.sun.tools.attach.AgentInitializationException: Agent JAR loaded
but agent failed to initialize
at sun.tools.attach.HotSpotVirtualMachine.loadAgent(HotSpotVirtualMachine.java:103)
at com.jvmtop.openjdk.tools.LocalVirtualMachine.loadManagementAgent(LocalVirtualMachine.java:368)
... 7 more
JvmTop 0.6.0 alpha amd64, 4 cpus, Linux 2.6.34.8-
http://code.google.com/p/jvmtop
ERROR: Could not attach to process.]
3. jvmtop is not running after above exception.
After above exception, If I execute jvmtop.sh <pid> where pid = process running
under user. Its running normal.
I am running small java program under root. jvmtop.sh <pid> works fine. But on
web application's pid its not.
I am using jboss-5.1.0.GA server. My server is up and running.
Original comment by [email protected]
on 18 Jun 2013 at 11:08
from jvmtop.
Hi,
thanks for the update.
I was able to reproduce this issue.
The root cause of this is that the jvm is most probably not responding or
restricted its management attach mechanism.
You can try executing jstack 9092 - it will most probably also stop with an
error message - so unfortunately there's nothing jvmtop can do for this jvm.
However, an exception should not be displayed here as this a regular use case.
I will change jvmtop to catch this exception and display a meaningful status in
the overview view.
Original comment by [email protected]
on 25 Jun 2013 at 4:44
- Changed state: Accepted
from jvmtop.
Hi,
Apologies for late reply. jstack works fine on this pid.
Here is the command output.
[root@yamini-dt yamini]# jstack 9092
2013-07-08 11:33:52
Full thread dump Java HotSpot(TM) 64-Bit Server VM (20.1-b02 mixed mode):
"Attach Listener" daemon prio=10 tid=0x00007fc84c003000 nid=0x14b1 waiting on
condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"pool-23-thread-2" prio=10 tid=0x00007fc834009800 nid=0x5d7c waiting on
condition [0x00007fc7f3972000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000000b23331c8> (a java.util.concurrent.SynchronousQueue$TransferStack)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:422)
at java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:323)
at java.util.concurrent.SynchronousQueue.take(SynchronousQueue.java:857)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:947)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:662)
Original comment by [email protected]
on 8 Jul 2013 at 6:37
from jvmtop.
@all : Please retest if jvmtop 0.8.0 is fixing the attaching issues.
Please let us know if the issues are fixed - or post what is not yet working.
Original comment by [email protected]
on 14 Aug 2013 at 2:46
from jvmtop.
Related Issues (20)
- APIs for jvmtop HOT 2
- NOT COMPATIBLE WITH RED_HAT_5 HOT 10
- sles11 s390x with IBM SDK - java.io.IOException: ATTACH_ERR HOT 1
- Enhancement : Need Break-up details on NHCUR HOT 2
- Connecting to a PID with -p or --pid does not work HOT 1
- Don't cut thread list in detail mode (as option) HOT 2
- Add sort options in detail mode HOT 1
- reports incorrect cpu usage when running on multi core server HOT 3
- ERROR: Connection refused/access denied HOT 5
- jvmtop.sh cannot be linked HOT 1
- Memory leak in VMOverviewView HOT 1
- HPMAX returns the committed memory of the application and not the actual memory allocated HOT 1
- ERROR: Connection refused/access denied HOT 1
- Processes running under a user with no shell cannot be examined by jvmtop HOT 2
- "Once" function does not show threads for PID
- Improve error message for AttachNotSupportedException
- jvmtop.bat throws an exception when JAVA_HOME has spaces
- JavaTop not running on Ubuntu 14.0
- Operation not permitted
- Exception in thread "main" java.lang.NoClassDefFoundError: com/jvmtop/JvmTop
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jvmtop.