0% found this document useful (0 votes)
83 views2 pages

Thread Dump & Heap Dump

The document discusses how to generate thread dumps and heap dumps from the command prompt in WebSphere Application Server. It provides steps to log on to the machine, go to the bin directory, and use wsadmin commands to invoke dumps on a specific server for diagnostic and analysis purposes.

Uploaded by

Nagaraja Babu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
83 views2 pages

Thread Dump & Heap Dump

The document discusses how to generate thread dumps and heap dumps from the command prompt in WebSphere Application Server. It provides steps to log on to the machine, go to the bin directory, and use wsadmin commands to invoke dumps on a specific server for diagnostic and analysis purposes.

Uploaded by

Nagaraja Babu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Generating Heap & Thread Dump from command prompt

Thread Dump (Java Core Dump):

A thread dump is a dump of the stacks of all live threads. It is a way of finding out what every

thread in the JVM is doing at a particular point in time. This is useful for analyzing what an application is

doing at some point and also useful in diagnosing some kinds of 'execution' problems.

Heap Dump:

A heap dump is a "binary dump" of the full memory the JVM is using. It is a snapshot of the memory of a

Java process. Thus useful for analyzing how much of memory is being used by a JVM at a particular

point of time and also in diagnosing some memory issues, and if done at intervals it is helpful in

identifying memory leaks.

Generating Thread dump & Heap Dump in WAS:

1. Logon to the machine where the WebSphere Application Server is installed.

2. Run command prompt as admin and go to E:\Websphere_8ND\AppServer\profiles\<profile>\bin

directory and invoke either the "wsadmin.sh" or "wsadmin.bat".

3. On the wsadmin prompt, run the following commands

set jvm [$AdminControl completeObjectName type=JVM,process=xPression1,*]


$AdminControl invoke $jvm generateHeapDump
$AdminControl invoke $jvm dumpThreads

Note:

 xPression1 - name of the server for which dumps are to be generated

 The dumps are generated in the path E:\Websphere_8ND\AppServer\profiles\<host

name>\servers and the heap dumps are saved as .phd file(portable heap dumps)

 On unix/Linux machines find the process id (PID) of the hung JVM and issue kill -3 PID.

Look for an output file in the installation root directory with a name like

javacore.date.time.id.txt.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy