Simple JVM memory info for JRE 1.4.2

I have a system which is very performance critical, therefore, I would not want to attach any large profiling tool which would hurt its performance.

I only need one very simple information, on requested, which is the amount of free memory availble from total.

Is there a resource efficient way to do this on a production server running JRE 1.4.2? Thanks in advance!

[385 byte] By [girafffea] at [2007-11-27 0:56:57]
# 1

JDK 5.0 (and JDK 6) includes a jstat utility that accesses the performance counter in the HotSpot VM and you can use to connect to 1.4.2 VMs.

http://java.sun.com/javase/6/docs/technotes/tools/share/jstat.html

It was formerly known as the jvmstat technology: http://java.sun.com/performance/jvmstat/.

mandy_kochunga at 2007-7-11 23:30:16 > top of Java-index,Core,Monitoring & Management...
# 2
ya..for 1.4 I donn know. From JRE1.6 we have memory profiling tools which are bundled. SEE http://java.sun.com/developer/technicalArticles/J2SE/monitoring/We have third party profilers like NetBeans Profiler(think this is the light weight one) , JProbe, JProfiler etc.
Mathewhaia at 2007-7-11 23:30:16 > top of Java-index,Core,Monitoring & Management...