Hello again --
I'm trying to show the higher ups that our codebase is not using objects correctly. We're making copies of immutable objects all over the place and its driving me mad. However, I have no 'proof' (i.e., metrics) to show the bosses that its a problem.
I just got an Out-of-Memory exception's Heap Dump of one particular program which tends toward OOMEs and I want to go through the thing, find all the Integer, String and what-not objects, get their values and compare them, showing the count of instances of exact copies as well as the memory allocated to them.
jhat is quite sluggish (there are 9.4 million object instances in this heap dump), NetBeans' heap viewer is more user-interactive, for digging into stuff manually.
I want to somehow parse this thing 'my way' or otherwise produce the 'report' I mention above.
Help?
- z -
I'm trying to show the higher ups that our codebase is not using objects correctly. We're making copies of immutable objects all over the place and its driving me mad. However, I have no 'proof' (i.e., metrics) to show the bosses that its a problem.
I just got an Out-of-Memory exception's Heap Dump of one particular program which tends toward OOMEs and I want to go through the thing, find all the Integer, String and what-not objects, get their values and compare them, showing the count of instances of exact copies as well as the memory allocated to them.
jhat is quite sluggish (there are 9.4 million object instances in this heap dump), NetBeans' heap viewer is more user-interactive, for digging into stuff manually.
I want to somehow parse this thing 'my way' or otherwise produce the 'report' I mention above.
Help?
- z -