Semaphore - What is it?

Khanna Ji
Tera Guru

Can anybody explain in simple terms what is semaphore, where can I check it and why is it needed in ServiceNow?

1 ACCEPTED SOLUTION

Hitoshi Ozawa
Giga Sage
Giga Sage

There's an explanation in the following thread.

https://community.servicenow.com/community?id=community_question&sys_id=c69700b4db1d5fc4b61ff3231f96...

 

This is what can happen is there's a semaphore problem with an instance.

An instance has multiple application nodes.
 The default settings are for each application node to have a maximum of 50 semaphores,
 with 4 active threads at the time. If transactions come too fast or take too long,
 they can queue up. If the queue reaches the maximum setting, new transactions on the
 queue are refused.

https://hi.service-now.com/kb_view.do?sysparm_article=KB0635977

View solution in original post

4 REPLIES 4

Pranav Bhagat
Kilo Sage

Check this

Semaphores -> this is a throttling concept and you can find plenty of information about it on the internet, like for example:

https://dzone.com/articles/java-concurrency-semaphores

 

Pranav

 

Hitoshi Ozawa
Giga Sage
Giga Sage

There's an explanation in the following thread.

https://community.servicenow.com/community?id=community_question&sys_id=c69700b4db1d5fc4b61ff3231f96...

 

This is what can happen is there's a semaphore problem with an instance.

An instance has multiple application nodes.
 The default settings are for each application node to have a maximum of 50 semaphores,
 with 4 active threads at the time. If transactions come too fast or take too long,
 they can queue up. If the queue reaches the maximum setting, new transactions on the
 queue are refused.

https://hi.service-now.com/kb_view.do?sysparm_article=KB0635977

In the KB, it states check stats.do in each node but how can I login to a specific node?

There's a blog on the topic. To view stats on your instance, just open <your instance url>/stats.do

https://community.servicenow.com/community?id=community_blog&sys_id=6cfda22ddbd0dbc01dcaf3231f961907

TSE attending to your issue asked you to navigate to the URI of the servlet statistics monitoring utility,
 stats.do.