# Get roster scripting function

**URL:** <https://forum.inductiveautomation.com/t/get-roster-scripting-function/32102>\
**Category:** General Discussion\
**Tags:** scripting\
**Created:** [February 10, 2020, 7:12pm UTC](https://forum.inductiveautomation.com/t/get-roster-scripting-function/32102 "2020-02-10T19:12:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![guipinper](https://avatars.discourse-cdn.com/v4/letter/g/ce73a5/32.png) [@guipinper](https://forum.inductiveautomation.com/u/guipinper)\
**Post date:** [February 10, 2020, 7:12pm UTC](https://forum.inductiveautomation.com/t/get-roster-scripting-function/32102/1 "2020-02-10T19:12:40Z")

</div>

Hi guys,  
Just a quick question: does the function `system.alarm.getRosters()` gets the information directly from the gateway?

Best regards, Guilherme

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [February 10, 2020, 8:41pm UTC](https://forum.inductiveautomation.com/t/get-roster-scripting-function/32102/2 "2020-02-10T20:41:21Z")

</div>

Yes it does.

---

<div class="post-metadata">

**Author:** ![guipinper](https://avatars.discourse-cdn.com/v4/letter/g/ce73a5/32.png) [@guipinper](https://forum.inductiveautomation.com/u/guipinper)\
**Post date:** [February 10, 2020, 8:47pm UTC](https://forum.inductiveautomation.com/t/get-roster-scripting-function/32102/3 "2020-02-10T20:47:32Z")

</div>

So, could this function create some gateway slowdown and/or high cpu/ram consumption if every client runs it 3 times every 5 seconds (in runscript expression function)? Obviously it depends on the Ignition’s machine specs, but I just want get a rough idea.  
I’m just asking because the RAM and CPU consumption were running pretty high until I removed this function from the project. Also due to an unrelated problem we had to restart the server, and now the both CPU and RAM are pretty smooth, and now I can’t tell if it was due to this fix or the restart.

---

<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:** [February 10, 2020, 8:55pm UTC](https://forum.inductiveautomation.com/t/get-roster-scripting-function/32102/4 "2020-02-10T20:55:20Z")

</div>

Yes, it could cause CPU problems depending on the number of clients.

You have to be careful with the `runScript` expression because it’s easy to abuse it like this and cause problems.

---

<div class="post-metadata">

**Author:** ![guipinper](https://avatars.discourse-cdn.com/v4/letter/g/ce73a5/32.png) [@guipinper](https://forum.inductiveautomation.com/u/guipinper)\
**Post date:** [February 10, 2020, 9:02pm UTC](https://forum.inductiveautomation.com/t/get-roster-scripting-function/32102/5 "2020-02-10T21:02:22Z")

</div>

Thanks! Yes I agree, I’m always trying to hunt them down from more older versions of the project (I think this was the last one).

Also, this is kind off unrelated (should I make a bug report about this?): When I changed the Client Maximum Memory to 2048M some users were unable to start the project because their Win10 was pointing to the 32-bit java version. I bet this kind off stuff will disappear with Ignition 8.
