pips
pips

Reputation: 46

Find declaration of large array

dotMemory indicates that one of my user's application instances has a sparsely populated byte array of length 20,971,520 that is wasting 160MB. This is from a process dump analysis.

Is there a way to find where this array is declared/used from the process dump? I also have the solution code to hand.

Upvotes: 0

Views: 39

Answers (1)

Ed Pavlov
Ed Pavlov

Reputation: 2508

Is it not clear from the retention path? If so, profile (run under profiling) the application with dotMemory with collection of allocations data turned on, then look where this array is instantiated.

Upvotes: 1

Related Questions