Skip to main content
3-Newcomer
Oct 4, 2024 7:06 AM UTC
Solved

Make all active services visible

Anyone any idea how I can make a list visible to see which services are running? We have some services who take some time

14-Alexandrite
Oct 29, 2024 9:59 AM UTC

Thsi is performance wise not good. But for testing if you would like to do, then probably you can log the service name, start time (capture when it start executing), and stop time to a stream or value stream. Then you can use appropeiate visualizations to see and analyze teh captured data.

8 replies

Catalina
Community Moderator
Oct 4, 2024 10:14 AM UTC

Hi @RL_12055923,

 

Thank you for your question! 

 

I’d like to recommend to bring more details and context to your initial inquiry. 

It also helps to have screenshot(s) to better understand what you are trying to do in your process. 

 

Please refer to this guideline to make your questions more likely to receive a quick and useful answer. 

This will increase your chances to receive meaningful help from other Community members. 

 

Thank you for your participation and please let me know if you need further assistance! 

 

Best regards,

Translate
Catalina | PTC Community Moderator
16-Pearl
Oct 14, 2024 8:21 AM UTC

No tools to list the *running* services of Thing, however, you can capture Thread dump of Tomcat several times, and check the thread dumps to get which services are running

Translate
3-Newcomer
Oct 25, 2024 7:18 AM UTC

How can you do that?

Translate
17-Peridot
Nov 4, 2024 7:18 PM UTC

In SupportSubsystem you would execute DumpAllThreads which will generate a stack trace in fileRepository "SupportRepository" where you can download the file.

- The file is a java stack trace which you can open in e.g. Notepad++ (there are also some specific tools for stack traces but not necessary needed.)

- If you search for JavaScript services, in your texteditor search for 'org.mozilla.javascript.gen.' and it will somewhat show you which services are currently being run e.g. for me it runs a service "UploadFiles"

nmutter_0-1730747733721.png

But it will find a lot of such entries for one execution - you will see in your file. The ones on the same "parent" belong to the same call.

 

Best is to execute the DumpAllThread in a ~30 seconds interval. So you can see which service has ran over the 30 seconds (or whatever interval).

 

It is not that easy to use, but other than that I do not know a way of getting currently running services.

 

Translate
14-Alexandrite
Oct 22, 2024 10:28 AM UTC

Hi,

 

Service execution time can be obtained with 'UtilisationSubsystem'. 

Please refer the below support link.

https://support.ptc.com/help/thingworx/platform/r9.6/en/index.html#page/ThingWorx/Help/Composer/System/Subsystems/utilizationsubsystem.html#

 

With regards

Yedukrishnan

Translate
3-Newcomer
Oct 25, 2024 7:17 AM UTC

We would like to make active services visible. This possibility doesn't seem to excist in the UtilisationSubsystem to me.

Translate
14-Alexandrite
Oct 29, 2024 9:59 AM UTC

Thsi is performance wise not good. But for testing if you would like to do, then probably you can log the service name, start time (capture when it start executing), and stop time to a stream or value stream. Then you can use appropeiate visualizations to see and analyze teh captured data.

Translate