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 / September 2007

Tip: Looking for answers? Try searching our database.

How do I get an out-of-memory error memory usage dump?

Thread view: 
Todd - 05 Sep 2007 15:08 GMT
Hello all,

I have written an application which uses many Vectors as storage
locations for data needed in subsequent processing.  I thought that I
had cleared the data from all of the Vectors once the subsequent
processing was complete so that following cycles can also be
processed.

I had started my application last night before I left work and when I
returned today, it was no longer on screen.  I have not included any
"feature" to shut down the interface when execution has completed.  As
such, I know that something went wrong.

During development, I had out-of-memory errors showing in the console
of the develoment environment which leads me to believe that this may
be a continuing issue.

My question is how can I get a dump of all memory usage in case of a
fatal crash?  I don't mean the contents of the storage, just how much
memory is being used within a method and by the method variables.

Thanks in advance,
Todd
Jeff Higgins - 05 Sep 2007 15:17 GMT
> Hello all,
>
[quoted text clipped - 19 lines]
> Thanks in advance,
> Todd

<http://java.sun.com/j2se/1.5.0/docs/guide/management/jconsole.html>
Todd - 05 Sep 2007 15:50 GMT
> <http://java.sun.com/j2se/1.5.0/docs/guide/management/jconsole.html>- Hide quoted text -
>
> - Show quoted text -

I have tried to connect the jconsole to my running application as
described in the guide, however, unfortunately, it looks as if my
system has been configured FAT and not NTFS.

Thanks for pointing me towards that guide.  I had thought that
jconsole was for web applications only.
Jeff Higgins - 05 Sep 2007 16:08 GMT
>> <http://java.sun.com/j2se/1.5.0/docs/guide/management/jconsole.html>-
>> Hide quoted text -
[quoted text clipped - 7 lines]
> Thanks for pointing me towards that guide.  I had thought that
> jconsole was for web applications only.

hprof ?
<http://java.sun.com/developer/technicalArticles/Programming/HPROF.html>
Jack - 05 Sep 2007 15:25 GMT
I don't think you can have that like that. If you set the Sun JVM option
"core dump on out of memory", and use some core dump reader program
(JProfiler for example), then you will be able to know what method
consume how much memory.

HTH

Todd a écrit :
> Hello all,
>
[quoted text clipped - 19 lines]
> Thanks in advance,
> Todd


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.