Java code to access the shared heap

Hi

Help needed and forgive me as I dont know Java so please bare with me.
I have searched this site and google but was unable to locate the information I need.

An application that we use - is based on java and stores some performance counters etc internally in the shared JVM. They are not held in an oracle db etc

What I want to be able to do is access the shared area in JVM and write out the contents, I am not 100% sure how the counters are stored etc so I would need to access the entire JVM memory and write it to a file on the unix filesystem assuming thats even possible..

Can you help? :confused::confused::confused:

Server information:
java version "1.4.2_10"
Solaris 10

So you want to reach into java's raw memory from the outside, and access values stored in it that way?

Yes... Am I being niave?

The vendor of the app does have a webpage that calls some JavaScript to get some of the counter but I don't know how I could execute the same java scripts if I could find them, from the unix command line

any ideas?

You can't just reach into Java's memory and get it. In fact you're not supposed to reach into and abuse another process' memory in general.

Their javascript must be just retrieving some CGI-generated XML file or something similar and parsing its content. You could do the same, or you could examine the source for the CGI script itself and see how it works.

Thanks, appreciate the feedback.

Apologies if I have wasted ur time.
I will look into the web page sources etc