Skip to main content

Using built-in jdk tools

3 replies [Last post]
ateslin
Offline
Joined: 2005-11-04
Points: 0

Hi,

I am not advanced java programmer, but i would like to use some built-in jdk tools for monitoring - heap for example.
I have read some material about jvmti, which looks too complex and requires to create agents in c or c++, which is not what i want.
Does anyone know what built-in jdk tool is more straight forward - i tryied to use jconsole but no luck so far. Also tools such as jmap does not work for windows.

Any advice will be appreciated.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tmarble
Offline
Joined: 2003-08-22
Points: 0

Jconsole *should* work... let us know what's not
working about it.... For jconsole (which is
part of Monitoring and Management) you can use
this form:
http://java.sun.com/j2se/mail/mmfeedback.html

Another way of monitoring is with jvmstat -- specifically
with the visualgc tool (separate) download:
http://java.sun.com/performance/reference/whitepapers/tuning.html#sectio...

See also all the tools in the troubleshooting guide:
http://java.sun.com/j2se/1.5/pdf/jdk50_ts_guide.pdf

HTH,

--Tom

ateslin
Offline
Joined: 2005-11-04
Points: 0

Thanks Tom for very useful information.

When i run the Notepad demo it works fine, but when i am trying to run my application:

Docuements and Settings\..\..\Test1

first i compile Test1

Then I run with: com.sun.management.jmxremote Test1 (without -D option in from), give me this error:

Exception in thread "main" java.lang.NoClassDefFoundError: com.sun.management.jmxremote

What this means?
And what should be doing?

I have changed to NTFS my file system (otherwise would give me an error with Notepad too).

Thank you

ateslin
Offline
Joined: 2005-11-04
Points: 0

Sorry for the previous message, i was doing wrong by exluding -D in front.

But i still can not make a connection when jconsole is opened.