is there any way in ServiceNow to check script performance?

m_servicenow
Kilo Contributor

Hi Everyone,

I want to know performance of ServiceNow then is there any way in servicenow?

 

Suppose i have written a business rule, client script and more script . so basically how we can measure the performance in respect of this script in servicenow.

Somehow i want to know which script is taking how much time individually.

 

I go through performance Link in wiki but it gives only client and server timing response only.

http://wiki.servicenow.com/index.php?title=Troubleshooting_Performance

 

Please suggest me any idea.

4 REPLIES 4

Bhavesh Jain1
Giga Guru

Yes it is possible. See below screen.Capture.PNG


Bhavesh Jain1
Giga Guru

You must have seen the Response time icon at the bottom of any form in Servicenow.


Just click on that icon and click on browser text.


Clicking on Browser will give you client script time and clicking on Server will give business rule time.


Hope it makes sense.




Regards,


Bhavesh


IGate-logo.png


http://www.igate.com


Hi Bhavesh?


Can I get to know which business rule took how long if there are multiple business rules running for a form? Server time is probably the total time taken by all server side scripts.


Thats easy . you can enable debug of BR and that would give you the timing and execution details for each BR.



OR a simple hack could be to initialize a date time variable at the beginning of a BR and at the very end of BR and log that difference. repeat this for all the BRs running on your form.