Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading JVM memeory of active class?

Status
Not open for further replies.

Jroyal

Programmer
Oct 24, 2006
9
GB
Hi, I would like to read all the memeory address and what is kept in them by the JVM.

I dont know what this is called, and i cant seem to find any books or articles on this.

can anyone point me to a direction.
 
You can monitor total JVM memory usage by doing :

Runtime.getRuntime().freeMemory()

and

Runtime.getRuntime().totalMemory()

There are also ways to output JVM memory usage in finer detail by firing the JVM in debug modes.
This thread details some options :


--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
that just gives me the details of what memeory (space) is being used, what i want is to find out what memeory location is a certain class puting its data in.

I.e. a 3rd party program say, a rss feeder, its download data of the net and displaying it on the screenw ithout saving the data, i want to know where this data is being held in the ram, the memeory location.

so that i can use c++ or c to read that data, of the memeory space.

Is there anyway of tracing where the class is holding this data, and if so what is this called.
 
Java does not do pointer arithmetic, whatever that means,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top