Performance issue on the PDI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12 hours ago
When i am using RestAPI i am getting 500 errors occasionally. How can I check the performance of the instance? I want to monitor the load of the instance with the polling I am doing for devices. I want to find out how i can improve or reduce amount of traffic my instance is getting for monitoring device health using app engine.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11 hours ago
Hi @RobertH87910571,
You can start by checking System Logs > Transactions (syslog_transaction) to monitor the REST API requests coming from your integration user. Check the response time, SQL execution time, and Business Rule execution time to identify slow transactions.
Also, check System Logs > Errors around the time the 500 errors occur to identify any script-related issues.
To monitor instance performance, you can use:
Performance Homepage / stats.do – Monitor node health, memory, and semaphore usage.
Instance Observer – Monitor transactions, slow queries, and instance performance (if available).
REST API Rate Limit Rules – Control the number of inbound requests from your integration user.
To reduce unnecessary API traffic, consider the following approaches:
Use sys_updated_on to retrieve only recently modified records instead of fetching all device records repeatedly.
Use sysparm_fields and sysparm_limit to reduce response size.
Use the REST Batch API to combine multiple requests.
Introduce appropriate polling intervals and exponential backoff when API errors occur.
Consider a push-based approach using Event Management, Event API, or Import Sets instead of frequent polling.
I would suggest first analyzing the transaction logs to understand whether the 500 errors are caused by instance load, slow queries, or script execution. Based on those findings, you can optimize the integration accordingly.
Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards,
Tarun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @RobertH87910571,
Check weather the API is working properly in the postman or not, if the API is working properly in postman then it will work properly in any integration.
Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards,
Tarun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
49m ago - last edited 48m ago
Refer KBs for 500 error:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0860113
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB3126139
Refer following links for monitoring your instance:
Monitoring ServiceNow Platform Performance: Combining Outside-In and Inside-Out Perspectives