Geekflare is supported by our audience. We may earn affiliate commissions from buying links on this site.
In WebSphere Last updated: September 6, 2022
Share on:
Invicti Web Application Security Scanner – the only solution that delivers automatic verification of vulnerabilities with Proof-Based Scanning™.

One of the essential tasks for the system administrator is to generate system dump, java core and heap dump in WebSphere Application Server.

Usually, you had to do when troubleshooting application and needed to investigate the issues either in application or infrastructure.

This is possible either using WAS Admin Console or Command line. Based on your preference, you can choose the method.

1. Using WebSphere Administrative Console

  • Login into DMGR Console
  • Navigate to Troubleshooting at left side
  • Click on java dumps and cores

was-troubleshooting

  • Select the JVM from the list and click on the one you wish to generate

was-select-dump

Dump & Core will be generated under WebSphere profile location. You will get the absolute path under the message.

was-heap-dump-location

2. Using Command Line

  • Login into WAS Server
  • Go to profile and bin folder
  • Execute wsadmin.sh file
[root@localhost bin]# ./wsadmin.sh
WASX7209I: Connected to process "dmgr" on node localhostCellManager01 using SOAP connector; The type of process is: DeploymentManager
WASX7029I: For help, enter: "$Help help"
wsadmin>
  • Set JVM name in a variable
set jvm [$AdminControl completeObjectName type=JVM,process=server1,*]

Note: server1 is for example. Change this to your actual JVM name.

wsadmin>set jvm [$AdminControl completeObjectName type=JVM,process=server1,*]
WebSphere:name=JVM,process=server1,platform=proxy,node=localhostNode01,j2eeType=JVM,J2EEServer=server1,version=8.5.5.0,type=JVM,mbeanIdentifier=JVM,cell=localhostCell01,spec=1.0
wsadmin>

To generate heap dump

  • Execute following
$AdminControl invoke $jvm generateHeapDump

This will generate heap dump and give you the path where it’s available.

wsadmin>$AdminControl invoke $jvm generateHeapDump
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/./heapdump.20160618.225441.4808.0006.phd
wsadmin>

To generate Java Core

$AdminControl invoke $jvm dumpThreads

This will generate thread dump and will be available under profile path.

You see getting dumps are easy and analyzing them is always interesting. Check out my next article on how to analyze them for application troubleshooting.

  • Chandan Kumar
    Author
    As the founder of Geekflare, I’ve helped millions to excel in the digital realm. Passionate about technology, I’m on a mission to explore the world and amplify growth for professionals and businesses alike.
Thanks to our Sponsors
More great readings on WebSphere
Power Your Business
Some of the tools and services to help your business grow.
  • Invicti uses the Proof-Based Scanning™ to automatically verify the identified vulnerabilities and generate actionable results within just hours.
    Try Invicti
  • Web scraping, residential proxy, proxy manager, web unlocker, search engine crawler, and all you need to collect web data.
    Try Brightdata
  • Monday.com is an all-in-one work OS to help you manage projects, tasks, work, sales, CRM, operations, workflows, and more.
    Try Monday
  • Intruder is an online vulnerability scanner that finds cyber security weaknesses in your infrastructure, to avoid costly data breaches.
    Try Intruder