# Gateway High CPU usage with Memory maxing out

**URL:** <https://forum.inductiveautomation.com/t/gateway-high-cpu-usage-with-memory-maxing-out/5472>\
**Category:** General Discussion\
**Created:** [November 25, 2012, 12:51am UTC](https://forum.inductiveautomation.com/t/gateway-high-cpu-usage-with-memory-maxing-out/5472 "2012-11-25T00:51:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![0sm0](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/0sm0/32/15228_2.png) [@0sm0](https://forum.inductiveautomation.com/u/0sm0)\
**Post date:** [November 25, 2012, 12:51am UTC](https://forum.inductiveautomation.com/t/gateway-high-cpu-usage-with-memory-maxing-out/5472/1 "2012-11-25T00:51:48Z")

</div>

Hi,

running V7.5.4 with Java 7\_9, MS Server 2008

After performing a reboot of the gateway we have now found that the gateway server has high CPU usage and the gateway memory slowly increases until maxed out.

All was working perfectly beforehand with latest MS and Java updates.

Under console/threads the TagSubscriptionModel-thread-1 (47) is the culprit using 50%.

`Locking
Owns monitor java.lang.Object@174b459
Owns monitor java.lang.Object@ec7b4d
Owns synchronizerjava.util.concurrent.ThreadPoolExecutor$Worker@3be555
Stack
java.util.HashMap.createEntry(Unknown Source)java.util.HashMap.addEntry(Unknown Source)java.util.HashMap.put(Unknown Source)java.util.HashSet.add(Unknown Source)java.util.AbstractCollection.addAll(Unknown Source)java.util.HashSet.(Unknown Source)com.inductiveautomation.ignition.gateway.sqltags.scanclasses.BasicScanClassInstance.removeTags(BasicScanClassInstance.java:186)com.inductiveautomation.ignition.gateway.sqltags.scanclasses.SimpleExecutableScanClass.removeTags(SimpleExecutableScanClass.java:358)com.inductiveautomation.ignition.gateway.sqltags.tagproviders.internal.execution.LeasedExecutableScanClass$LeasedSC.removeTags(LeasedExecutableScanClass.java:556)com.inductiveautomation.ignition.gateway.sqltags.tagproviders.internal.execution.LeasedExecutableScanClass.setLeasedTags(LeasedExecutableScanClass.java:305)com.inductiveautomation.ignition.gateway.sqltags.tagproviders.internal.InternalSQLTagsProvider.evaluateScanClassLeases(InternalSQLTagsProvider.java:154)com.inductiveautomation.ignition.gateway.sqltags.providers.AbstractStoreBasedTagProvider.subscriptionChanged(AbstractStoreBasedTagProvider.java:1976)com.inductiveautomation.ignition.gateway.sqltags.model.TagSubscriptionModel$ChangeNotificationJob.run(TagSubscriptionModel.java:243)com.inductiveautomation.ignition.common.execution.impl.BasicExecutionEngine$ThrowableCatchingRunnable.run(BasicExecutionEngine.java:526)java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)java.util.concurrent.FutureTask.run(Unknown Source)java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)java.lang.Thread.run(Unknown Source)`

Once the Heap memory usage has maxed out then the theads CPU usage drops but java still maintains the 50%+ CPU usage.

Even with All devices disabled, All projects disabled, All Transaction groups disabled. Same result.

Can anyone shed any light on this?

Last time a simular issue happened I had to create a fresh install and restore a backup from that install as though something in the servers ignition gateway had become corrupted…

EDIT: I have restored an earlier backup of the gateway and everything seems to be working again as normal… I’m still after so ideas as to why this may happen?

Cheers

Tim…

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [November 27, 2012, 4:10pm UTC](https://forum.inductiveautomation.com/t/gateway-high-cpu-usage-with-memory-maxing-out/5472/2 "2012-11-27T16:10:21Z")

</div>

Hi,

This is related to a problem with leased scan classes. In the case that we used to track it down, it had to do with tags referenced in alert messages, and how they affected the leased/unleased state. It may be triggered by other situations as well. It was fixed in 7.5.5, so you can try installing the latest beta. If you don’t want to do that, the temporary work around is to change your scan classes back to “direct” instead of leased (which it sounds like you might have done).

Regards,

---

<div class="post-metadata">

**Author:** ![0sm0](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/0sm0/32/15228_2.png) [@0sm0](https://forum.inductiveautomation.com/u/0sm0)\
**Post date:** [November 28, 2012, 4:01am UTC](https://forum.inductiveautomation.com/t/gateway-high-cpu-usage-with-memory-maxing-out/5472/3 "2012-11-28T04:01:18Z")

</div>

Many Thanks Colby,

Management will be happy to get an answer.

Cheers
