Skip to content

Instantly share code, notes, and snippets.

@enebo
Created June 23, 2014 22:55
Show Gist options
  • Save enebo/6eaeaacc5c54c5130f49 to your computer and use it in GitHub Desktop.
Save enebo/6eaeaacc5c54c5130f49 to your computer and use it in GitHub Desktop.
require 'jmx'
server = JMX.simple_server
client = JMX.connect
hot_spot = client["com.sun.management:type=HotSpotDiagnostic"]
hot_spot.dumpHeap "my_heap.map", true
puts "done"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment