How to generate a thread dump for any Java based application without using any tools?

How to generate a thread dump for any Java based application without using any tools?

book

Article ID: KB0085232

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks -
Not Applicable -

Description

Resolution:

To create a thread dump, the engine should be started from the command line.

- Go to the deployed engine directory (tibco/tra/domain/<domain_name>/application/<bw_instance>
- Run the .sh file as follows from the command prompt:

$<instance_name>.sh > debug.out 2>&1

For SUN JVM:

Solaris OS:

<ctrl>-’\’ (Control-Backslash)
kill -QUIT <PID>

HP-UX/UNIX/Linux:

Kill -3 <PID>

Windows:

Press Ctrl + Break or Ctrl + Pause against CMD console.
 
For IBM JVM (AIX):
 
1). Set the following before starting:
export IBM_HEAPDUMP=true
export IBM_HEAP_DUMP=true
export IBM_HEAPDUMP_OUTOFMEMORY=true
export IBM_HEAPDUMPDIR=<directory path>
 
2). Make sure there is no setting for DISABLE_JAVADUMP using set.
 
3). Starting.
 
4). Kill -3 <PID>
 
There are also general memory information generated in the thread dump by this way.

Issue/Introduction

How to generate a thread dump for any Java based application without using any tools?

Additional Information

N/A