Fetch Process ID

Server's Process ID

Get the server's JVM Process ID.

Icon

Server's Process ID is available in the console.


Figure 1: Server Console showing Server's Process ID

Icon

For servers running as service, the process ID will be available in the service logs being logged to the service.log file of the server

Component's Process ID

Component Process ID can be fetched for components running as separate process using the following steps:

  1. Login to ESB Dashboard and go to the Applications page.


    Figure 2: Applications Page
     
  2. Select the application which has the component for which the Process ID needs to be identified. The ServiceDetails section below the Application Details section contains the required component's Process ID.


    Figure 3: Service Details

Server and Component Thread Dumps

In case a server/component is seen to be non performing due to any unforeseen reason, server/component thread dump can be taken, which helps the support team analyse and understand the issue because of which the performance is being affected. This section explains the procedure to fetch the thread dumps from a working Fiorano setup.

Server Thread Dumps from Dashboard

Follow the steps given below to get the server thread dump: 

  1. Login to ESB Dashboard and go to the server status page.


    Figure 4: Server Status Page
     
  2. Select the server for which you want the thread dump.


    Figure 5: Server Selection
     
  3. Click the View Server Thread Dump Button


    Figure 6: View Server Thread Dump
     
  4. A pop-up window appears showing the thread dump. Click Download to save the thread dump to file.


    Figure 7: Thread Info

Server Thread Dumps from JVM Process ID using jstack

Icon

jstack is an in-built tool provided by Java packaged with the Java Development Kit.

After fetching server's process ID, to get the thread dump using jstack, open a new console window and use jstack <pid> >> threadDump.txt command to store the thread dump to threadDump.txt file.


Figure 8: jstack command

Component Thread Dumps from JVM Process ID using jstack

Icon

Fiorano suggests to use the open source tool 'VisualVM' to fetch the thread dumps from components running as a separate process. Alternatively, use jstack in-built in the JDK to get the thread dump.

Component Process ID can be fetched for components running as separate process using the following step:

After fetching component's Process ID, use the jstack command to get the thread dump of the component:


Figure 9: jstack Command

Server and Component Heap Dumps

Server Heap Dumps from JVM Process ID using jmap

After fetching server's process ID, to get the heap dump using jmap, open a new console window and use the following command to store the heap dump to heapDump.bin file:

 jmap -dump:format=b,file=heapDump.bin <pid> 


Figure 10: jmap Command

Component Heap Dumps from JVM Process ID using jmap

After fetching component's Process ID, use the jmap command to get the heap dump of the component:


Figure 11: jmap Command

Adaptavist ThemeBuilder EngineAtlassian Confluence