This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

finding Memory Leaks using MAT  RSS feed

 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • 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
 
François Mercier
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • 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
  • 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]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!