• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Eclipse Memory Analyzer

 
John Vorwald
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A heap dump was generated after a out of memory error. The eclipse memory analyzer leak suspect report indicates three suspect leaks. How do I read this report? I see a shortest paths to accumulation point, that refers to a jpanel object, and doesn't seem too helpful. The accumulated object indicates the largest object is a "view" class, and the next largest object is a jfree chart panel. The accumulated object by class list the jfree chart, followed by a "solver" class, followed by jfree time history. This could suggest that the "solver" class is providing too much data to the "view" class.

I'm not sure what I would do next here. Is there a way to identify the variable that is too large?
 
John Vorwald
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Boy, that took some effort to find the cause of the out of memory error.
I accidentally introduced a out of memory error into the program.
I tried using the memory analyzer, but could not understand the information well enough to isolate the error.
I ended up using JConsole with break points in eclipse to monitor when the memory. I was able to hit pause while the memory was increasing, and by looking at the stack dump saw there was an infinite recursion loop. The loop was a result of multiple toString members.

From this exercise, one approach to resolve an out of memory error is to use JConsole to monitor the memory while using break points to evaluate different sections of the program.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic