Created
October 1, 2015 02:11
-
-
Save kelapure/393c13271d7a9d8dad3a to your computer and use it in GitHub Desktop.
Commands for OOM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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