Monday, March 3, 2014

Notes on Eclipse Memory Analyzer

The next step was to call the "magic" "group by value" query on all those strings

http://eclipsesource.com/blogs/2013/01/21/10-tips-for-using-the-eclipse-memory-analyzer/
5. Exploring Paths to the GC Roots

You can Find all the Strings in the system that match a particular pattern:
Or even find Strings in the system which contain wasted space in their character arrays (often due to repeated use of substring).

9. Object Query Language
select * from com.example.mat.Listener
SELECT toString(l.message), l.message.count FROM com.example.mat.Listener l
SELECT toString(s), s.count FROM java.lang.String s WHERE (toString(s) NOT LIKE "message.*")

Exporting your results to CSV
http://kohlerm.blogspot.com/2008/05/analyzing-memory-consumption-of-eclipse.html
The next step was to call the "magic" "group by value" query on all those strings :

select * from org.apache.catalina.connector.Request
select toString(req.postData) from org.apache.catalina.connector.Request req where (toString(req.postData) !="null")

No comments:

Post a Comment