title: jhat throwing unrecognized magic number
body: <p>I am trying to analyse a heap dump taken from a java process that ran into memory issues. The dump was taken using jmap. I am using jhat on the dump file - I am getting </p>
  
  <p><code>java.io.IOException: Unrecognized magic number: 169897589
          at com.sun.tools.hat.internal.parser.Reader.readFile(Reader.java:94)
          at com.sun.tools.hat.Main.main(Main.java:159)</code></p>
  
  <p>Both jdk 1.6 and 1.7 give the same error. I am running the jhat on my Windows machine locally (after copying the dump file over ) and the dump file was taken on Linux server.</p>
  
  <p>Any ideas what I am doing wrong ?</p>