mss / jvmtop

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

Issue while running standalone #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run the jar file from ide
2.
3.

What is the expected output? What do you see instead?

expected output is jvm statistics. actual output is following exception
java.lang.UnsatisfiedLinkError: no attach in java.library.path
java.io.IOException: no providers installed
    at com.jvmtop.openjdk.tools.LocalVirtualMachine.loadManagementAgent(LocalVirtualMachine.java:341)
    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:86)
    at com.jvmtop.VMInfo.processNewVM(VMInfo.java:73)
    at com.jvmtop.VMOverviewView.scanForNewVMs(VMOverviewView.java:79)
    at com.jvmtop.VMOverviewView.printView(VMOverviewView.java:23)
    at com.jvmtop.JvmTop.run(JvmTop.java:62)
    at com.jvmtop.JvmTop.main(JvmTop.java:34)
Caused by: com.sun.tools.attach.AttachNotSupportedException: no providers 
installed
    at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:190)
    at com.jvmtop.openjdk.tools.LocalVirtualMachine.loadManagementAgent(LocalVirtualMachine.java:337)
    ... 9 more

What version of the product are you using? On what operating system?

Latest version jvmtop 0.5 and the OS is windows XP

Please provide any additional information below.

Original issue reported on code.google.com by chaitany...@gmail.com on 27 May 2013 at 9:45

GoogleCodeExporter commented 9 years ago
Which JDK are you using for running jvmtop?

Original comment by patric.r...@gmail.com on 27 May 2013 at 10:14

GoogleCodeExporter commented 9 years ago

java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode, sharing)

Original comment by chaitany...@gmail.com on 27 May 2013 at 10:41

GoogleCodeExporter commented 9 years ago
Ok - is it a real JDK (or just an JRE?)

Original comment by patric.r...@gmail.com on 27 May 2013 at 10:53

GoogleCodeExporter commented 9 years ago
it is just an JRE i.e C:\Program Files (x86)\Java\jre6

Original comment by chaitany...@gmail.com on 27 May 2013 at 11:02

GoogleCodeExporter commented 9 years ago
Ok..i changed it to  a completed jdk installation and it started working. How 
come it is showing 3GB for HPMAX for jvmtop program.

Original comment by chaitany...@gmail.com on 27 May 2013 at 11:08

GoogleCodeExporter commented 9 years ago
Good. I'll will add a documentation hint which clearly states that jvmtop 
requires a JDK to work properly.

To answer your additional question:
If you start the jar by yourself then the default memory settings apply (this 
is also the case for every other java program you start), which is for HPMAX 
often half the RAM of your machine. So this has nothing to do with jvmtop. But 
you're are free to limit the maximum heap for jvmtop using the appropriate jvm 
arguments.

Original comment by patric.r...@gmail.com on 27 May 2013 at 11:18