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