# propertyChange event on componentRunning overhead

**URL:** <https://forum.inductiveautomation.com/t/propertychange-event-on-componentrunning-overhead/15256>\
**Category:** Ignition\
**Created:** [September 5, 2017, 9:20pm UTC](https://forum.inductiveautomation.com/t/propertychange-event-on-componentrunning-overhead/15256 "2017-09-05T21:20:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![brian.mcenulty](https://avatars.discourse-cdn.com/v4/letter/b/b77776/32.png) [@brian.mcenulty](https://forum.inductiveautomation.com/u/brian.mcenulty)\
**Post date:** [September 5, 2017, 9:20pm UTC](https://forum.inductiveautomation.com/t/propertychange-event-on-componentrunning-overhead/15256/1 "2017-09-05T21:20:23Z")

</div>

I’m curious when creating a propertyChange component script that is triggered from the “componentRunning” property, how often is this script executed and what are the possible ramifications from doing this when it comes to cpu and memory usage?

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [September 5, 2017, 9:33pm UTC](https://forum.inductiveautomation.com/t/propertychange-event-on-componentrunning-overhead/15256/2 "2017-09-05T21:33:47Z")

</div>

The script is executed twice, once when the component is displayed and once when it is removed. It uses very little CPU and memory.

---

<div class="post-metadata">

**Author:** ![brian.mcenulty](https://avatars.discourse-cdn.com/v4/letter/b/b77776/32.png) [@brian.mcenulty](https://forum.inductiveautomation.com/u/brian.mcenulty)\
**Post date:** [September 5, 2017, 9:45pm UTC](https://forum.inductiveautomation.com/t/propertychange-event-on-componentrunning-overhead/15256/3 "2017-09-05T21:45:27Z")

</div>

Perfect thank you. I’ve been using it as a “component initialized” property to do certain tasks so this is the behavior I was hoping for.

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [September 5, 2017, 9:47pm UTC](https://forum.inductiveautomation.com/t/propertychange-event-on-componentrunning-overhead/15256/4 "2017-09-05T21:47:13Z")

</div>

Yes, I use it the same way.
