1. put the script under Profiles\appservername\bin
2. look at the soap host ( as you can see in the console port )
3. run such as the following command: ./wsadmin.sh-host localhost (point to interceptDumporCorethe Machine)-port soapport -username wasadmin -password Wasadmin-f Jvmdump.jacl
4. ./wsadmin.sh-host localhost ( point to interceptDumporCorethe Machine)-port soapport -username wasadmin -password Wasadmin-f Heap Dump.jacl
</pre><pre name= "code" class= "plain" >set JVM [$AdminControl completeobjectname Type=jvm,process=server1, *]puts stdout "About to start dumping javaheap ..." puts stdout [$AdminControl invoke $JVM generateheapdump]<pre name= "c Ode "class=" plain ">
</pre><pre name= "code" class= "plain" >set JVM [$AdminControl completeobjectname Type=jvm,process=server1, *]puts stdout "About to start dumping javacore ..." $AdminControl invoke $JVM dumpthreadsputs stdout "done dumping Javacore ."
Puts stdout "done:)"
Exporting a WebSphere memory image