0

I am doing some memory profiling on a java application using VisualVM. I have a large amount of char arrays and strings but what I want to do is to analyze to which objects they belong.

How can I do that?

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
user1765902
  • 281
  • 1
  • 3
  • 8

1 Answers1

0

Take a heap dump from your monitored application. In the heap dump you can see individual instances of char[] and String and you can also see which objects reference them.

Yuri
  • 4,254
  • 1
  • 29
  • 46
Tomas Hurka
  • 6,723
  • 29
  • 38