Skip to content

Instantly share code, notes, and snippets.

@steveglachan
steveglachan / JVM Memory Heap Dump
Last active August 29, 2015 14:21
Short batch script used to dump and zip/archive the memory heap used by the Adobe ColdFusion (version 9) Jrun (J2EE Application Server) instance.The memory heap dump can then be analysed for memory leaks using VisualVM software.
:: ---
:: Script for JVM Memory Heap Dump
:: - Adobe ColdFusion 9, JRun, JDK 1.6.x, MS Windows
:: Dependencies:
:: - PSEXEC: https://technet.microsoft.com/en-au/sysinternals/bb897553.aspx
:: - JDK: The JDK library versions for JVM and JMAP utility must match (e.g. both 1.6.x)
:: - 7-ZIP: Command-line archiving utility
:: - *** RUN THIS BATCH SCRIPT AS ADMINISTRATOR ***
:: Recommended:
:: - VisualVM (https://visualvm.java.net/) for analysis of the memory heap dump