owenthereal / codefaces

a web-based source control client
3 stars 2 forks source link

[CORE] analyzing memory leak with ema #82

Closed owenthereal closed 14 years ago

owenthereal commented 14 years ago

http://www.eclipse.org/mat/

owenthereal commented 14 years ago

does spot memory leak. saying something like this: http://stackoverflow.com/questions/2841808/how-to-break-on-nsautoreleasenopool

kklo commented 14 years ago

a totorial: http://www.vogella.de/articles/EclipseMemoryAnalyser/article.html

kklo commented 14 years ago

and also there is jmap for heapdump: http://www.ictedge.org/node/815

kklo commented 14 years ago

http://serverfault.com/questions/103749/alternatives-for-heapdumps-creation-with-higher-performance-than-jmap

owenthereal commented 14 years ago

You prob. need Eclipse MAT in order to spot the memory leak for bundles: http://dev.eclipse.org/blogs/memoryanalyzer/2008/05/27/automated-heap-dump-analysis-finding-memory-leaks-with-one-click/ & http://dev.eclipse.org/blogs/memoryanalyzer/2008/11/28/analyzing-the-equinox-bundle-dependencies-with-memory-analyzer/ & http://dev.eclipse.org/blogs/memoryanalyzer/2008/09/03/about-querying-objects-from-a-heap-dump/.

It's fairly easy to use just by one click.

kklo commented 14 years ago

Confirmed SVNClient is disposed when session timeouted. No special memory leak found using MAT