Skip to Content

How to get a list of Java AS node threads

May 22, 2017 at 05:28 PM


avatar image

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!

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Milen Dontcheff
Jul 03, 2017 at 08:15 AM

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:

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

10 |10000 characters needed characters left characters exceeded