cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a list of Java AS node threads

Former Member
0 Kudos

Hello colleagues

I need to get a list of all threads for each Java AS node. Actually I need to gather statistic how many node threads are busy and how many are free.

Do you have any idea how to do this?

I need this for SAP PI server running Netweaver 7.31.

Thank you very much in advance!

Accepted Solutions (1)

Accepted Solutions (1)

former_member189220
Active Contributor

There is no such tool that might provide you such statistics. You might have the state of the threads for a particular moment in time.

1. In the SAP MMC Console there are statistics about each instance what kind of threads are running, waiting, blocked and etc. One might observe the threads in 'real-time'. When one triggers a snapshot it will include the status of the captured threads for a specific moment of time. So you might have a collections of MMC snapshots for a particular moments of time.

For collecting SAP MMC snapshot one might follow the direction in note 1847251 - How to create an MMC snapshot about an SAP system

This is provided the AS Java runs over Windows O.S.

For UNIX / HP operating systems you have to create the snapshot with

sapcontrol -nr <xx> -function CreateSnapshot

<xx> has to be replaced by the two digit instance number. Get a list of instance with the following command:

sapcontrol -nr <xx> -function GetSystemInstanceList

You will have to create snapshots for every instance.

1786182 - CreateSnapshot: Collecting developer traces using sapcontrol

2. Another way to do this is to trigger thread dumps in one of the ways described here:

http://wiki.scn.sap.com/wiki/display/ASJAVA/%28JSTTSG%29%28Deploy%29Thread+Dump

But again this will collect the state of the thread for a particular moment in time.

Answers (0)