I have a memory issue. And I found a huge char[] in heap dump. But I don't know where it come from. It is a weak/soft reference. Is there any tool/approach to track this kind of basic type array allocation?
Asked
Active
Viewed 193 times
3 Answers
2
Finally I found a good way to tack array allocate. Here is link for example http://kenai.com/projects/btrace/sources/hg/content/samples/NewArray.java?rev=442

crabhit
- 139
- 1
- 2
- 7
1
For this kind of problem, I think it's to to look into instrumentation and profiling your code. Java has hooks that allow external programs to poke around the heap. I think a great one, which has a free trial, is jprofiler
http://www.ej-technologies.com/products/jprofiler/overview.html

keefe
- 46
- 1