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 / May 2006

Tip: Looking for answers? Try searching our database.

Tap on heap while debugging

Thread view: 
Hendrik Maryns - 26 May 2006 18:04 GMT
Hi,

I have written a fairly complex program which converts mathematical
formulae into tree automata, and am in the process of trying it out with
different formulas.  The results are discouraging, I get an
OutOfMemoryError: Java heap space with fairly small formula.  Now I have
some hashmaps which I suspect from being the cause of this problem, but
I can’t seem to pin down which one.  I would like to do a debugging run
and see how the heap space is distributed among the objects that are
created.

So the question: is there some debugging program which shows a
(preferably graphical) view of the heap space and the size of the
objects in it, and how they evolve.  I use Eclipse, but having to
inspect manually those hashes after each few steps is difficult.  Nicest
would be to have some flowing chart which shows the big memory consumers.

Any ideas how to approach this?

Thanks, H.
- --
Hendrik Maryns

==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
Oliver Wong - 26 May 2006 19:33 GMT
> So the question: is there some debugging program which shows a
> (preferably graphical) view of the heap space and the size of the
> objects in it, and how they evolve.  I use Eclipse, but having to
> inspect manually those hashes after each few steps is difficult.  Nicest
> would be to have some flowing chart which shows the big memory consumers.

   Many profilers will report memory usage.

These two profilers report memor usage as part of their feature list, but
they cost money:

http://www.yourkit.com/overview/index.jsp
http://www.ej-technologies.com/products/jprofiler/features.html

   There's a list of open source java profilers at
http://java-source.net/open-source/profilers I leave it up to you to read
their descriptions to find out which ones support memory usage analysis.

   - Oliver
IchBin - 26 May 2006 22:47 GMT
>> So the question: is there some debugging program which shows a
>> (preferably graphical) view of the heap space and the size of the
[quoted text clipped - 16 lines]
>
>    - Oliver
If you are running Netbeans, they have an addon Profiler.
http://profiler.netbeans.org

Eclipse also has their profiler called tptp (Eclipse Test and
Performance Tools Platform). Both could help you out.
http://www.eclipse.org/tptp

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)


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.