Skip to content

Instantly share code, notes, and snippets.

@kelapure
Created October 1, 2015 02:11
Show Gist options
  • Save kelapure/393c13271d7a9d8dad3a to your computer and use it in GitHub Desktop.
Save kelapure/393c13271d7a9d8dad3a to your computer and use it in GitHub Desktop.
Commands for OOM
For all versions of WebSphere ( that do not override dump agents)
kill -6 <WebSphere Process id> should produce a core file and leave the server running
kill -11 <WebSphere Process id> should produce a core file and halt the process
PID=` ps -ef | grep java | grep -v "bash\|grep" | awk '{print $2}'`
./jmap -dump:format=b,file=/home/vcap/app/test.hprof $PID
For WebSphere Application Server 7.0 and following, wsadmin scripting may be used to request System Core files by finding the process and issuing the command : See the Knowledge Center for more information: wsadmin script to request core file A jython example for server1 would be:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment