Skip to content

Instantly share code, notes, and snippets.

@mresetar
Created August 25, 2011 20:20
Show Gist options
  • Save mresetar/1171785 to your computer and use it in GitHub Desktop.
Save mresetar/1171785 to your computer and use it in GitHub Desktop.
WAS Jython script to generate heap dump
serverJvm = AdminControl.queryNames('WebSphere:type=JVM,*')
print 'Generating dump for server: ' + serverJvm
dumpFile = AdminControl.invoke(serverJvm, 'generateHeapDump')
print 'Heap dump file: ' + dumpFile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment