Skip to main content

Using built-in jdk tools

3 replies [Last post]
Joined: 2005-11-04


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.
Joined: 2003-08-22

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:

Another way of monitoring is with jvmstat -- specifically
with the visualgc tool (separate) download:

See also all the tools in the troubleshooting guide:



Joined: 2005-11-04

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: Test1 (without -D option in from), give me this error:

Exception in thread "main" java.lang.NoClassDefFoundError:

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

Joined: 2005-11-04

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.