Skip to main content
pshashipreetham
18-Opal
18-Opal
May 2, 2022
Solved

Tomcat using 100% of CPU Memory

  • May 2, 2022
  • 3 replies
  • 6524 views

When checked in the Application Log, there is following error:

 

[L: ERROR] [O: c.t.s.s.w.p.WSExecutionInstance] [I: ] [U: Administrator] [S: ] [P: ] [T: WSExecutionProcessor-479] error executing APIRequest Message: Unable to dispatch [ uri = /Things/RemoteThingName/Services/UpdateSubscribedPropertyValues/]: Unable to Invoke Service UpdateSubscribedPropertyValues on RemoteThingName: java.lang.Exception: Invalid Property Name: [Property1], sending ERROR ResponseMessage to caller!

 


@c_lowy @paic @slangley @CarlesColl 

Thanks,
Shashi

Best answer by pshashipreetham

Got the issue,

 

So there are a few issues that got noticed.

  1. There was a Software Antimalware Service Executable running 10+ Postgres Service Instances in the background - I googled and got rid of the software.
  2. A few Developer-created test Schedulers and Timers were creating issues; got rid of them too.

Thanks,

Shashi.

3 replies

22-Sapphire I
May 2, 2022

Is your system using 100% CPU or is Tomcat using 100% Memory in the JVM?

Unless you have a very low amount of memory on your server, it will be more likely to hit 100% CPU, which would probably mean that you are spawning threads faster than that ThingWorx processes them.

For example your subscriptions fire every second, but your subscriptions actually take longer than 1 second to be processed so that the next set of subscriptions fire off and start to stack up.

pshashipreetham
18-Opal
18-Opal
May 2, 2022

Hi @PaiChung ,

how can I know Tomcat is using 100% Memory in the JVM ?

Thanks,
Shashi.

22-Sapphire I
May 2, 2022

Not sure if you set a JVM Memory max limit, but that would show in the server memory usage.

Also you can look within ThingWorx by going to Monitoring/System Statistics

You'll also see an Event Queue there, if that is continuously going up or staying very high would indicate that your are 'overloading' the processor(s)

Support
May 11, 2022

Hi @psp316r

 

Have you been able to find a solution to your performance related issues?  If not, I recommend opening a case.  I will be happy to open one on your behalf if you agree but you will need to private message me your PTC Support email address to do so.  A current support agreement will be required.

 

Regards.

 

--Sharon

pshashipreetham
18-Opal
pshashipreetham18-OpalAuthorAnswer
18-Opal
July 21, 2022

Got the issue,

 

So there are a few issues that got noticed.

  1. There was a Software Antimalware Service Executable running 10+ Postgres Service Instances in the background - I googled and got rid of the software.
  2. A few Developer-created test Schedulers and Timers were creating issues; got rid of them too.

Thanks,

Shashi.