• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

finding Memory Leaks using MAT

 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,

i'm not so sure whether or not i am in the right forum to post this question.

well, i have a problem with an app that exits after a while caused by a heap space error.

the Xmx is set to 1024M so it has enough memory to work with

i started the jvm with -XX:+HeapDumpOnOutOfMemoryError and opened the file in the Memory Leak tool MAT

the major problem seems to be one class (Result) that has 22.000 instances. The thing is I dont know where they come from cuz there are running different plugins that could create those instances.

does anybody know how to work with MAT ?

thank you in advance
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Follow the link found in http://wiki.eclipse.org/index.php/MemoryAnalyzer#Finding_Memory_Leaks
especially Krum's blog (you need to register at SAP DEVELOPER NETWORK but it's valuable)
HTH
F++
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey,

i was digging thru the program a little and found out that it's the char arrays that eat up 1gb of memory ..

no i dont know how to move on in order to find out how come those objects are not being freed for gc ...

i attached a picture of the class overview ..

thank you
mat.jpg
[Thumbnail for mat.jpg]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic