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 / Virtual Machine / July 2004

Tip: Looking for answers? Try searching our database.

Objects in memory

Thread view: 
Takeda - 15 Jul 2004 14:40 GMT
How can I know what objects are in memory?
And how can I know what methods are been called?

I wanna code a kind of logger system or memory dumper, but I can't
modify the source of current aplication (except main() method). Any
idea?
Other similar solution is create a kind of listener of others objects.
But I don't know hot to do that without modify the others objects.

Tx!
Chris Smith - 15 Jul 2004 15:58 GMT
> How can I know what objects are in memory?
> And how can I know what methods are been called?

Look into the JVMTI, or for earlier Java versions the JVMPI.

Signature

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

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation

Matthias Ernst - 15 Jul 2004 17:58 GMT
>> How can I know what objects are in memory?
>> And how can I know what methods are been called?
>
> Look into the JVMTI, or for earlier Java versions the JVMPI.

JDK 1.5 has an excellent starting point for a dumper under demo/. If you
want one for 1.4, check out http://www.virtualmachine.de/ . That'll give
you a primitive dump in a text file. IBM VMs are able to do this as well
--- and there's an analyzer for that.

Matthias
Signature

Matthias Ernst
CoreMedia - The Content Technology Experts

"Toll takes its time."



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.