Skip to main content
May 2, 2022 11:21 AM UTC
Solved

Tomcat using 100% of CPU Memory

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

Jul 21, 2022 2:34 PM UTC

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.

11 replies

May 2, 2022 12:15 PM UTC

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.

May 2, 2022 6:00 PM UTC

Hi @PaiChung ,

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

Thanks,
Shashi.

May 2, 2022 6:20 PM UTC

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)

May 11, 2022 1:54 PM UTC

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

pshashipreethamAuthorAnswer
Jul 21, 2022 2:34 PM UTC

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.