# Occasional Clock Drifts

**URL:** <https://forum.inductiveautomation.com/t/occasional-clock-drifts/31689>\
**Category:** Ignition\
**Created:** [January 28, 2020, 6:40pm UTC](https://forum.inductiveautomation.com/t/occasional-clock-drifts/31689 "2020-01-28T18:40:41Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [January 28, 2020, 6:40pm UTC](https://forum.inductiveautomation.com/t/occasional-clock-drifts/31689/1 "2020-01-28T18:40:41Z")

</div>

Version: 8.0.7

Any idea what might cause these occasional clock drifts? We didn’t see any during our debug, but when we moved to the final hardware, they started occuring every now and then. Resources seem to all be failry low, Windows puts everything under 50% and the gateway doesn’t even get to half the RAM we have dedicated with roughly 5% CPU usage.

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

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [January 28, 2020, 6:43pm UTC](https://forum.inductiveautomation.com/t/occasional-clock-drifts/31689/2 "2020-01-28T18:43:05Z")

</div>

Is this real hardware or a VM?

Is it possible these are actual adjustments to the system time and not a performance issue?

---

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [January 28, 2020, 6:44pm UTC](https://forum.inductiveautomation.com/t/occasional-clock-drifts/31689/3 "2020-01-28T18:44:36Z")

</div>

Real Hardware, and it is very similar to the other hardware.

It could be, but I did disable windows automatic clock sync, so I’m hoping that that is the only place that might be changing the system clock.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [January 28, 2020, 6:47pm UTC](https://forum.inductiveautomation.com/t/occasional-clock-drifts/31689/4 "2020-01-28T18:47:19Z")

</div>

You can enable GC logging and see if maybe some kind of GC event corresponds to the clock drift entries.

Add this as an additional param in ignition.conf and restart:

`-Xlog:gc*:/path/to/gc.log:time,level,tags`

Make sure “/path/to/gc.log” actually points somewhere that exists (minus the gc.log of course, that should get created).

---

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [January 29, 2020, 7:35am UTC](https://forum.inductiveautomation.com/t/occasional-clock-drifts/31689/5 "2020-01-29T07:35:25Z")

</div>

These look very consistend around 20 minutes past the hour, with a small drift forward.

Is there a gateway script you’re running hourly that may need more time than before? Perhaps a synchronous network access?

EDIT: it could also be something from outside Ignition that’s hogging the CPU or disk in an hourly schedule.

---

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [January 29, 2020, 2:49pm UTC](https://forum.inductiveautomation.com/t/occasional-clock-drifts/31689/6 "2020-01-29T14:49:09Z")

</div>

Yeah, I had noticed that too.

I didn’t see anything else outside of Ignition. I don’t have any timed scripts that seem to be hourly.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [January 29, 2020, 2:57pm UTC](https://forum.inductiveautomation.com/t/occasional-clock-drifts/31689/7 "2020-01-29T14:57:46Z")

</div>

auto backups maybe? I think those default to every 15 minutes though.

---

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [January 29, 2020, 3:10pm UTC](https://forum.inductiveautomation.com/t/occasional-clock-drifts/31689/8 "2020-01-29T15:10:32Z")

</div>

Not enabled on this computer currently.

I did replace the CMOS battery this morning. Its a long shot, but figured it was worth trying. Computer was supposedly new, but maybe the customer bought a refurb one for us and that missed being replaced.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [January 29, 2020, 3:12pm UTC](https://forum.inductiveautomation.com/t/occasional-clock-drifts/31689/9 "2020-01-29T15:12:55Z")

</div>

Another thing people do is historize the CPU and memory system tags. This lets you throw them into an easy chart or something and see if the drifts correlate with big memory collections or CPU spikes.

No scheduled reports or anything? The spacing on the messages is too much to be a coincidence. Something scheduled, either inside Ignition or out, has got to be running…

---

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [January 31, 2020, 7:04am UTC](https://forum.inductiveautomation.com/t/occasional-clock-drifts/31689/10 "2020-01-31T07:04:22Z")

</div>

> [@grietveld](#):
>
> I didn’t see anything else outside of Ignition. I don’t have any timed scripts that seem to be hourly.

You do have a chance every hour, and you know it up to the minute, to monitor your system and see which component is getting a heavy load (CPU, disk, RAM or network), and to check which program it's coming from.

---

<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:** [January 31, 2020, 12:15pm UTC](https://forum.inductiveautomation.com/t/occasional-clock-drifts/31689/11 "2020-01-31T12:15:26Z")

</div>

Might be worth taking a close look for malware trying to “phone home” every hour.

---

<div class="post-metadata">

**Author:** ![Daniel\_Calderon](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@Daniel\_Calderon](https://forum.inductiveautomation.com/u/Daniel_Calderon)\
**Post date:** [November 7, 2023, 1:17pm UTC](https://forum.inductiveautomation.com/t/occasional-clock-drifts/31689/12 "2023-11-07T13:17:21Z")

</div>

Hi, I am having similar issue but **consistently every 15 minutes.**

Automatic backups are set to every hour, I have gateway timer scripts at every minute and every hour and they work fine, and I have reports schedule for twice a day and every hour and they also work fine.

I don't have any scheduled activity that happens every 15 minutes.

Any suggestions where could I look for root causes?

Thanks!

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/9/697624415b4f840df41166357b35e783ade660e7.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:** [November 7, 2023, 4:02pm UTC](https://forum.inductiveautomation.com/t/occasional-clock-drifts/31689/13 "2023-11-07T16:02:20Z")

</div>

Interesting. Something is running every fifteen minutes. Is this a VM? Where something else on the same hardware is bogging the physical hardware every fifteen minutes?

{ This looks a lot like what I've seen elsewhere with hypervisors stealing CPU time from "idle" Ignition VMs. }

---

<div class="post-metadata">

**Author:** ![Daniel\_Calderon](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@Daniel\_Calderon](https://forum.inductiveautomation.com/u/Daniel_Calderon)\
**Post date:** [November 7, 2023, 4:25pm UTC](https://forum.inductiveautomation.com/t/occasional-clock-drifts/31689/14 "2023-11-07T16:25:22Z")

</div>

Physical box. Performance manager looks all good. Only gateway service running on that box.

---

<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:** [November 7, 2023, 4:42pm UTC](https://forum.inductiveautomation.com/t/occasional-clock-drifts/31689/15 "2023-11-07T16:42:00Z")

</div>

Huh. Detailed logging is in order then. You should turn on GC detail logging via additional java parameters in ignition.conf.

Consider also **reducing** the amount of memory Ignition is allowed. The more there is that is churning, the longer the GC pause time can be. Find the time of day where that memory sawtooth spikes highest, and set the limit ~20% beyond that. Make sure both initial heap memory and max heap memory are set to the same value.

---

<div class="post-metadata">

**Author:** ![Daniel\_Calderon](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@Daniel\_Calderon](https://forum.inductiveautomation.com/u/Daniel_Calderon)\
**Post date:** [November 7, 2023, 11:00pm UTC](https://forum.inductiveautomation.com/t/occasional-clock-drifts/31689/16 "2023-11-07T23:00:50Z")

</div>

I did both things you suggested at 15:30 my time. (bring memory down and add detailed GC logs)

Since that point no clock drifts so far. No GC.log files either which I am not sure is ok or not, but it looks like it's running with no issues now.

Thanks a lot!

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/c/6c6ffdfe6205fba5e5db4a8916257d1565a3e71a.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:** [November 8, 2023, 12:02am UTC](https://forum.inductiveautomation.com/t/occasional-clock-drifts/31689/17 "2023-11-08T00:02:27Z")

</div>

> [@Daniel\_Calderon](#):
>
> No GC.log files either

No ok. There's been some churn in the java settings for that, so you might need to do some research.

---

<div class="post-metadata">

**Author:** ![drewdin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/drewdin/32/3363_2.png) [@drewdin](https://forum.inductiveautomation.com/u/drewdin)\
**Post date:** [October 13, 2026, 7:14pm UTC](https://forum.inductiveautomation.com/t/occasional-clock-drifts/31689/18 "2026-10-13T19:14:37Z")

</div>

old post but I was curious to see if you found the issue?
