2

I have a heap size of X (= 5 giga bytes). How much should I allocate for jprofiler to efficiently analyze this heap?

ripper234
  • 222,824
  • 274
  • 634
  • 905
  • Running it with 12 gigs has failed (it got stuck after reading the dump). I'm trying to give it 30 gigs to see how it works. – ripper234 Jan 14 '10 at 13:57
  • Note that I am using the "Calculate retained sizes" option. – ripper234 Jan 14 '10 at 13:59
  • YourKit succeeded in opening the dump without even increasing the default of 512 mb (Though "track GC roots" operation failed even when I increased the RAM to 2 gigs). – ripper234 Jan 15 '10 at 07:24

1 Answers1

1

I would recommend using Eclipse MAT to view the heap dump. It does a much better job in terms of memory requirements for a heap dump of size X because it creates intermediate index files on disk instead of sucking up the whole thing into it's own memory. Most tools require some multiple N of X to open the heap dump where N is usually >= 2. Also, make sure to start the Java process that runs MAT or JProfiler in 64-bit if you're going to give them more than 2g of memory.

Amir Afghani
  • 37,814
  • 16
  • 84
  • 124