Skip to content

Instantly share code, notes, and snippets.

@westonal
Created October 16, 2017 22:15
Show Gist options
  • Save westonal/00e3d3cadbd4586c5593f364bef2b47a to your computer and use it in GitHub Desktop.
Save westonal/00e3d3cadbd4586c5593f364bef2b47a to your computer and use it in GitHub Desktop.

List java processes

$ ps aux | grep java

Dump memory

$ jmap -dump:format=b,file=cheap.bin 8694

Pipe for strings

$ cat cheap.bin | strings > strings.txt

Search those strings:

$ cat strings.txt | grep jazz
jazz describe great discover hockey jelly parade account skin risk easy summer gauge until scheme

Spin up a webserver to explore the dump

$ jhat cheap.bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment