Skip to content

Instantly share code, notes, and snippets.

@kelapure
Created October 1, 2015 02:11

Revisions

  1. Rohit Kelapure created this gist Oct 1, 2015.
    9 changes: 9 additions & 0 deletions oom-commands
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    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: