chvs2000
chvs2000

Reputation: 167

Size of java heap dump files

My application server is generating .hprof files varying in different sizes from 2G to 3G. Why are heap dump files larger than the memory allocated through -Xmx.

Shouldn't they equal to max heap size? which is when out of memory error happens.

Upvotes: 1

Views: 1978

Answers (1)

Dev Amitabh
Dev Amitabh

Reputation: 185

It is not just the objects that it is outputting, it is also storing all the reference information for it to make more sense.

If processing large heap is a problem, you can use Eclipse MAT which helps you to index large heaps so that you can analyze them better.

Upvotes: 0

Related Questions