Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / June 2005

Tip: Looking for answers? Try searching our database.

Object in Memory

Thread view: 
paraiba2@yahoo.com - 10 Jun 2005 17:17 GMT
Hi,

Is there a way to determine from within a Java app what objects are in
memory and how much memory they are using?

What kind of memory statistics are available in the JVM besides
runtime.freeMemory(), runtime.totalMemory(), and runtime.maxMemory()?

Thanks,
Dave
Chris Smith - 11 Jun 2005 00:56 GMT
> Is there a way to determine from within a Java app what objects are in
> memory and how much memory they are using?

Yes.  There's an entire API devoted to gathering this kind of
information, and it's called the JVMTI (before Java 1.5, it's the JVMDI
and JVMPI, but they were united in 1.5).  These do require that the VM
be run in an appropriate mode to give out this information; which is
good, since we wouldn't want the VM to gather it all of the time.

Signature

www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.