Regarding System Diagnostics for servicenow

rakesh_mishra
Giga Contributor

Hello,

I have a query regarding Service-now instance , when i look into the System Diagnostics it gives the below information.

Can you guys please explain if i will continuously   call my instance REST API then it will impact on memory consumption ?

or

which activity cause high CPU consumption ?

Here is my   System Diagnostics

Statusonline
Logged in users442
Last reported0 seconds
Last reported (seconds ago)0
JVM UP time25 days 16 hours 12 minutes
JVM CPU time3 days 11 hours 57 minutes
Scheduler runningtrue
Scheduler queue length0
Memory (MB)394.0 of 1980.0
JVM Classes21669.0 loaded, 2850.0 unloaded
Transactions9991001
Errors374
GC.ParNew.Count241687 (32 per 5 minutes)
GC.ParNew.TotalTime3760155 (1 hour 2 minutes)
GC.ParNew.AvgTime0.015557953
GC.ConcurrentMarkSweep.Count5461 (0 per 5 minutes)
GC.ConcurrentMarkSweep.TotalTime4146301 (1 hour 9 minutes)
GC.ConcurrentMarkSweep.AvgTime0.7592567
4 REPLIES 4

sergiu_panaite
ServiceNow Employee
ServiceNow Employee

Hi Rakesh,



The answer is not a straight forward one. You may call continuously your instance via REST and still have no high impact on memory. It all depends on what type of transactions you're doing. if you're transactions are triggering/calling scripts for example that build objects in memory, then yes you can have impact even with small number of REST calls.


As for CPU usage, usually scripts that perform calculations can cause more impact on CPU.


sergiu.panaite : Thanks for the above information it helps a lot.



Is there any option, using that we can skip 'script execution' for specific user?



example:


                                if   user=='admin':


                                            don't run any script


                              else:


                                      check every condition and run scripts


What type of scripts you want to run? Some have a "Condition" field where you can add your user="admin" condition.


I am getting customer's Incident and problem table's records   using REST API.


But because of this , he is facing CPU consumptions issue.



As you mentioned above he can face this issue because of script, which he has created on incident and problem table.



so i just want to know is there any option that if a specific user is fetching records using REST API then don't check any other conditions and excute scripts.