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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Process manager for local services

tcoufal
12-Amethyst

Process manager for local services

Hi Guys,

I have been wondering...

Is there something that could be use as process manager for local (javacript) services?

Debugging is pain in the a..ss sometimes.

Something like PM2 for node, or TOP would be extremely usefull..

For an instance if you create local servcice

myService

while(true);

and you hit Execute, it spawns its own thread and it keeps going for ever.

What then?

If you call this service from within another service in loop, than what??

Any idea?

7 REPLIES 7

Hi Tomas,

I did once on Neo4J and I needed someone with NeoJ access in order to dig on database and remove the line. Yes, this is s real risk, at least with PostgreSQL can be easier to modify it, but if you don't know where the infinite loop is, it can be a real big problem.


Would be good to know the running threads an on which service they are, and which service it's consuming more RAM and CPU, also to improve solution performance.


Best REgards,

tcoufal
12-Amethyst
(To:CarlesColl)

But, if is service already running, changing it in Postgre will make no difference right?

And you also need to know where the corrupted service is in the first place.

I think that some process manager is long overdue..

It is needed.

Of course you need to stop Tomcat in order to do this change.

tcoufal
12-Amethyst
(To:CarlesColl)

Yes, but sometimes that is not an option.

Yes I know, I've already pointed out this problem to R&D two years ago, but never ever get a proper answer/plan.

tcoufal
12-Amethyst
(To:CarlesColl)

Well I will do my biding also.

Related question,

is there any docu about script log, i.e. Origin, Thread, Session etc. what does it mean and so on..

Also in my system Trace settings for script log does not seem to work, I can see only Errors and Infos but no Trace..

I've never seen this documentation, but it may exist...

Announcements


Top Tags