Skip to main content
pshashipreetham
19-Tanzanite
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

pshashipreetham
19-Tanzanite

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.

Shashi Preetham || +91 8099838801 || shashi@psptechhub.com

11 replies

22-Sapphire I

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.

Translate
pshashipreetham
19-Tanzanite

Hi @PaiChung ,

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

Thanks,
Shashi.

Translate
Shashi Preetham || +91 8099838801 || shashi@psptechhub.com
22-Sapphire I

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)

Translate
Support

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

Translate
pshashipreetham
pshashipreetham19-TanzaniteAuthorAnswer
19-Tanzanite

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.

Translate
Shashi Preetham || +91 8099838801 || shashi@psptechhub.com