Skip to main content

Java Virtual Machine Statistics Monitoring Tool on Java ME

4 replies [Last post]
stogawa
Offline
Joined: 2007-12-20
Points: 0

Hello.

I want to monitor Java VM statistics (for example, capacity and utilization of heaps).
Are there tools that can monitor Java VM from outside of VM (like to jstat or jvmstat on J2SE) ?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
stogawa
Offline
Joined: 2007-12-20
Points: 0

Hello.

I'm sorry that past message contained less information.
I'm using phoneME Advanced MR1 (CDC).
I want to add a VM management function that can manage get capacity and utilization of heaps.
On J2SE, Java VM has class PerfCounter, and jstat generates return values from this class.
Has anyone made it yet?

When implementing this function, It seems to need to modify shared code.
Should I modify shared code for this function individually?
Do some developers have plan to support it?

michael_heinrichs
Offline
Joined: 2007-11-15
Points: 0

Hi,

did you have a look at the WTK? It has a profiler, a memory-monitor and a network-monitor?

http://java.sun.com/products/sjwtoolkit/download.html

- Michael

stogawa
Offline
Joined: 2007-12-20
Points: 0

Hello.

I cannot use profiler on emulators on WTK.
Because I want to use CDC (not CLDC),
and my Java applications use JNI functions specialized to some I/O devices.

terrencebarr
Offline
Joined: 2004-03-04
Points: 0

Hi,

The phoneME VM has a bunch of runtime options to collect statistics on various aspects of the execution. See

http://java.sun.com/javame/reference/docs/sjwc-2.0-web/index.html

Not sure if that is what you are looking for.

-- Terrence