If the List[String]
instance is referenced by a class (for example via a val
) than you can look for the class that holds it.
- You can download Eclipse Memory Analyzer (MAT) and open your heap dump.
- You can then click the 'Dominator tree' and in the top of the table you can type the name of the class that holds your list.
- If you have found the class right-click it and select 'List objects -> With Incoming References`, that should give you the instances of the class that all could potentially hold the list.
- Right click one of the instances and select 'List objects -> With Outgoing References', that should give you a tree structure where you would find your list
- Note that once you find your list, you can check out the panel on the left (the inspector panel), that contains readable information.
Note: the above steps are from the top of my head, so they might not be completely accurate. This should however give you a good sense of direction.
Good luck!