Make all active services visible
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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,
PTC Community Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
How can you do that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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"
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @RL_12055923
It appears that a response to this post answers your question. For the benefit of other Community Members who may have the same question, it would be great if you could designate an appropriate reply as the Accepted Solution.
In the event that this response did not answer your question, please post your current status so that we can continue to support.
Thanks for using the PTC Community!
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
Service execution time can be obtained with 'UtilisationSubsystem'.
Please refer the below support link.
With regards
Yedukrishnan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
We would like to make active services visible. This possibility doesn't seem to excist in the UtilisationSubsystem to me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
