cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Make all active services visible

RL_12055923
3-Newcomer

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

7 REPLIES 7

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,

Catalina
PTC Community Moderator

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

How can you do that?

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.

 

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

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

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.

Announcements


Top Tags