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?
Server information:
java version "1.4.2_10"
Solaris 10
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
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.