title: Trigger Heap Dump of a 1.5 JVM running on Windows
body: <p>I'm trying to diagnose a PermGen memory leak problem in a Sun One 9.1 Application Server. In order to do that I need to get a heap dump of the JVM process. Unfortunately, the JVM process is version 1.5 running on Windows. Apparently, none of the ways for triggering a heap dump support that setup. I can have the JVM do a heap dump after it runs out of memory, or when it shuts down, but I need to be able to get heap dumps at arbitrary times. </p>
  
  <p>The two often mentioned ways for getting heap dumps are either using jmap or using the HotSpotDiagnostic MBean. Neither of those support jvm 1.5 on Windows.</p>
  
  <p>Is there a method that I've missed? If there's a way to programmatically trigger a heap dump (without using the HotSpotDiagnostic MBean), that would do too...</p>
  
  <p>If it's really not possible to do it in Windows, I guess I'd have to resort to building a Linux VM and doing my debugging in there.</p>
  
  <p>Thanks.</p>