{"id":3692,"date":"2014-11-06T07:52:08","date_gmt":"2014-11-05T23:52:08","guid":{"rendered":"http:\/\/rmohan.com\/?p=3692"},"modified":"2014-11-06T07:52:08","modified_gmt":"2014-11-05T23:52:08","slug":"manual-heap-or-thread-dump-in-websphere","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=3692","title":{"rendered":"manual heap or thread dump in websphere"},"content":{"rendered":"<p>How you should force heap or thread dump using wsadmin script<\/p>\n<p>Login to your machine running WAS<br \/>\nNavigate to<br \/>\ncd <WAS_ROOT>\/profiles\/<PROFILE_NAME>\/bin\/<br \/>\nConnect to deployment manager using wsadmin script<br \/>\nwsadmin.sh <DMGR_HOST> <PORT> -conntype SOAP -username <USERNAME> -password <PASSWORD><br \/>\nSet object variable<br \/>\nwsadmin> set jvm [$AdminControl completeObjectName type=JVM,process=<JVM_NAME>,node=<NODE_NAME>,*]<br \/>\nForce heap dump<br \/>\nwsadmin> $AdminControl invoke $jvm generateHeapDump<br \/>\nIn case you would like to dump threads<br \/>\nwsadmin> $adminControl invoke $jvm dumpThreads<br \/>\nHeap or thread dump will be saved to <WAS_ROOT>\/profiles\/<PROFILE_NAME>\/ directory with with respective naming convention<\/p>\n<p>Heapdump<br \/>\nheapdump.<PID><TIME>.phd<br \/>\nThreaddump<br \/>\njavacore.<PID><TIME>.txt<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How you should force heap or thread dump using wsadmin script<\/p>\n<p>Login to your machine running WAS Navigate to cd \/profiles\/\/bin\/ Connect to deployment manager using wsadmin script wsadmin.sh -conntype SOAP -username -password Set object variable wsadmin> set jvm [$AdminControl completeObjectName type=JVM,process=,node=,*] Force heap dump wsadmin> $AdminControl invoke $jvm generateHeapDump In case you would like [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3692"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3692"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3692\/revisions"}],"predecessor-version":[{"id":3693,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3692\/revisions\/3693"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}