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 / General / November 2007

Tip: Looking for answers? Try searching our database.

objects on heap in running jvm

Thread view: 
visionset@yahoo.com - 15 Nov 2007 09:47 GMT
In the past I'm sure I used a tool (possibly jdb) to examine objects
created in a running jvm.  I think I added some arguments to the
command line for the app I was investigating and then ran the tool to
attach it.  The output I think was quite simple tabulated plain text.
It gave me memory usage of the objects I created in my app.  Does
anyone know of this tool or one that will do this job? I really can't
find the one I used or can't get jdb to do it. Might have to use this
for 1.4 app but it will be useful whatever version.

TIA
Mike W
Lew - 15 Nov 2007 12:35 GMT
> In the past I'm sure I used a tool (possibly jdb) to examine objects
> created in a running jvm.  I think I added some arguments to the
[quoted text clipped - 4 lines]
> find the one I used or can't get jdb to do it. Might have to use this
> for 1.4 app but it will be useful whatever version.

Bear in mind that any such profile is transitory.  The Hotspot compiler can
change how much memory an object needs at run time through its various
optimizations.

GC complicates matters.

Profiler and GC output are useful for your purpose.

Signature

Lew

Daniel Pitts - 15 Nov 2007 16:20 GMT
>> In the past I'm sure I used a tool (possibly jdb) to examine objects
>> created in a running jvm.  I think I added some arguments to the
[quoted text clipped - 12 lines]
>
> Profiler and GC output are useful for your purpose.

There are tools though that help you take a "snapshot" of the memory
used in a JVM.  This *can* be useful to track down memory leaks.  I
think the tool is hprof, but I'm not sure.

Google for Java Heap Profile, and you'll probably stumble across a
useful tool.

Signature

Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>



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



©2009 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.