# Question for jenkins agent response time

**URL:** <https://community.jenkins.io/t/question-for-jenkins-agent-response-time/2312>\
**Category:** Using Jenkins\
**Tags:** question\
**Created:** [May 3, 2022, 10:31am UTC](https://community.jenkins.io/t/question-for-jenkins-agent-response-time/2312 "2022-05-03T10:31:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabrielwu](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@gabrielwu](https://community.jenkins.io/u/gabrielwu)\
**Post date:** [May 3, 2022, 10:31am UTC](https://community.jenkins.io/t/question-for-jenkins-agent-response-time/2312/1 "2022-05-03T10:31:21Z")

</div>

I have been puzzled about the exact definition of jenkins agent response time.

Jenkins agents are online. Some agents with response time is higher than 18000ms. some is normal around 50-60ms. I ping’ed from the agent to jenkins controller. The result is much lower than 18000ms, pretty much around 100ms.  
I need to display the agent response time to system users so they can know their network status quo, network performance, then they can fix their network problems.  
Now the bizzare ping result is far different lower than the response time showing in jenkins ndoe list.

I also post a question on stackoverflow [How is the jenkins slave response time calculated? - Stack Overflow](https://stackoverflow.com/questions/72067369/how-is-the-jenkins-slave-response-time-calculated?noredirect=1#comment127385237_72067369)  
I’m been answered with source code [jenkins/ResponseTimeMonitor.java at dacf078913d52a2e8c8a03f63d8401738ca317a7 · jenkinsci/jenkins · GitHub](https://github.com/jenkinsci/jenkins/blob/dacf078913d52a2e8c8a03f63d8401738ca317a7/core/src/main/java/hudson/node_monitors/ResponseTimeMonitor.java) .

To be honest it stills look blurry to me what the agent response time really means.

In the source code it says “Monitors the round-trip response time to this agent.”. Is it equivalent as “ping from agent to jenkins controller and controller to agent” ?  
any other way i can measure the response time through a shell script ?

---

<div class="post-metadata">

**Author:** ![gabrielwu](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@gabrielwu](https://community.jenkins.io/u/gabrielwu)\
**Post date:** [May 7, 2022, 2:44am UTC](https://community.jenkins.io/t/question-for-jenkins-agent-response-time/2312/2 "2022-05-07T02:44:06Z")

</div>

I saw @jglick @basil you guys are contributors for the source code (Kohsuke Kawaguchi not found in the community) [jenkins/ResponseTimeMonitor.java at b9fcd2ae02752e7a74e9ca4886e490e435a1ff03 · jenkinsci/jenkins · GitHub](https://github.com/jenkinsci/jenkins/blob/b9fcd2ae02752e7a74e9ca4886e490e435a1ff03/core/src/main/java/hudson/node_monitors/ResponseTimeMonitor.java)

Can you please help me with quesiton ?

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [May 8, 2022, 1:43am UTC](https://community.jenkins.io/t/question-for-jenkins-agent-response-time/2312/3 "2022-05-08T01:43:05Z")

</div>

Please don’t ping people for answers. People will contribute answers when they have time and knowledge
