# Gaps in CPU and memory usage trend

**URL:** <https://forum.inductiveautomation.com/t/gaps-in-cpu-and-memory-usage-trend/39108>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [September 28, 2020, 7:01am UTC](https://forum.inductiveautomation.com/t/gaps-in-cpu-and-memory-usage-trend/39108 "2020-09-28T07:01:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![aravindan.s](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@aravindan.s](https://forum.inductiveautomation.com/u/aravindan.s)\
**Post date:** [September 28, 2020, 7:01am UTC](https://forum.inductiveautomation.com/t/gaps-in-cpu-and-memory-usage-trend/39108/1 "2020-09-28T07:01:01Z")

</div>

Hello ,

Recently i have seen gaps in CPU and memory usage trend in ignition server

On a particular project I also see some of my event script are getting skipped and delay in OPC UA tag value updation

Are these two related ???.If so what is the root cause of this issue .

I understand this is related to system performance which highly depends on how efficiently we do scripts and run SQL queries in our projects  
but is there any method to regularly check for factors which affects system performance?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/3/130d1c826db3c9adda2aecf5b0fcbf3938688194.png)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 28, 2020, 11:56am UTC](https://forum.inductiveautomation.com/t/gaps-in-cpu-and-memory-usage-trend/39108/2 "2020-09-28T11:56:38Z")

</div>

Does your log show “clock drift” warnings? How much physical ram does your server (or VM) have?

---

<div class="post-metadata">

**Author:** ![aravindan.s](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@aravindan.s](https://forum.inductiveautomation.com/u/aravindan.s)\
**Post date:** [September 29, 2020, 6:15am UTC](https://forum.inductiveautomation.com/t/gaps-in-cpu-and-memory-usage-trend/39108/3 "2020-09-29T06:15:04Z")

</div>

Hi ,

Yes i can see clock drift warning in logs i have 16 gb RAM allocated for ignition .

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [September 29, 2020, 10:36am UTC](https://forum.inductiveautomation.com/t/gaps-in-cpu-and-memory-usage-trend/39108/4 "2020-09-29T10:36:55Z")

</div>

How much system RAM is there? What other processes are running on the system?

---

<div class="post-metadata">

**Author:** ![aravindan.s](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@aravindan.s](https://forum.inductiveautomation.com/u/aravindan.s)\
**Post date:** [September 29, 2020, 12:31pm UTC](https://forum.inductiveautomation.com/t/gaps-in-cpu-and-memory-usage-trend/39108/5 "2020-09-29T12:31:39Z")

</div>

> [@JordanCClark](#):
>
> er processes are running on the system?

We have 16 GB ram dedicated for the ignition system and there is no other process running in the system

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [September 29, 2020, 12:39pm UTC](https://forum.inductiveautomation.com/t/gaps-in-cpu-and-memory-usage-trend/39108/6 "2020-09-29T12:39:50Z")

</div>

I believe the question that @pturmel and @JordanCClark are asking isn’t how much RAM is dedicated for ignition but rather how much RAM is available to the system total. Ignition or otherwise. We can clearly see from your screen shot that Ignition has been allocated 16GB.

For instance if you have 16GB of RAM available to the system and all (or a significant portion) of it is being used by Ignition, then you’re going to have issues. However, if you have 32GB of RAM available to the system then that is a different story.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 29, 2020, 1:24pm UTC](https://forum.inductiveautomation.com/t/gaps-in-cpu-and-memory-usage-trend/39108/7 "2020-09-29T13:24:21Z")

</div>

> [@lrose](#):
>
> However, if you have 32GB of RAM available to the system then that is a different story.

Precisely. Ignition will eventually allocate the maximum memory it is allowed and generally does not give any back. It just recycles internally. The OS needs some memory of its own to run, so it will push some of Ignition's RAM to swap, which will cause [thrashing](https://en.wikipedia.org/wiki/Thrashing_(computer_science)), and your performance will be crushed. I generally do not allow Ignition to have more than half of the RAM of a system, even if totally alone on the system.

---

<div class="post-metadata">

**Author:** ![aravindan.s](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@aravindan.s](https://forum.inductiveautomation.com/u/aravindan.s)\
**Post date:** [September 30, 2020, 7:37am UTC](https://forum.inductiveautomation.com/t/gaps-in-cpu-and-memory-usage-trend/39108/8 "2020-09-30T07:37:52Z")

</div>

ho ok understood.My server physical have 64 GB of RAM and only runs Ignition and Postgres sql .

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 30, 2020, 12:24pm UTC](https://forum.inductiveautomation.com/t/gaps-in-cpu-and-memory-usage-trend/39108/9 "2020-09-30T12:24:47Z")

</div>

> [@aravindan.s](#):
>
> server physical have 64 GB of RAM

That's good. So you have enough to give your Ignition VM 24GB or 32GB. Or maybe you should review how much RAM Ignition really needs and set Ignition to use, perhaps, 8GB of the 16GB in that VM.
