in Technology by
What is a Ping Thread in Jenkins and how it works?

1 Answer

0 votes
by
Jenkins installs "ping thread" on every remote connection, such as Controller/Agent connections, regardless of its transport mechanism (such as SSH, JNLP, etc.). The lower level of the Jenkins Remoting Protocol is a message-oriented protocol, and a ping thread periodically sends a ping message that the receiving end will reply to. The ping thread measures the time it takes for the reply to arrive, and if it’s taking excessive time (currently 4 minutes and configurable), then it assumes that the connection was lost and initiates the formal close down. This is to avoid an infinite hang, as some of the failure modes in the network cannot be detected otherwise. The timeout is also set to a long enough value so that a temporary surge in the load or a long garbage collection pause will not trip off the close-down. Ping thread is installed on both controller & agent; each side pings the other and tries to detect the problem from their sides. The ping thread time out is reported through java.util.logging. Besides, the controller will also report this exception in the agent launch log. Note that some agent launchers, most notably SSH agents, writes all stdout/stderr outputs from the agent JVM into this same log file, so you need to be careful.

Related questions

0 votes
    Can't ping smtp.gmail.com. I've been using google smtp for email notification and it was working ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 16, 2022 in Education by JackTerrance
0 votes
    Ping sweep is also known as ________________ (a) ICMP sweep (b) SNMP sweep (c) SGNP sweep (d) SICMP sweep ... Cyber Security questions and answers pdf, mcq on Cyber Security pdf,...
asked Nov 4, 2021 in Education by JackTerrance
0 votes
    ________ attribute is used to tweak the ping timeout value. (a) -time (b) -t (c) -p (d) - ... Security?,Need-for-Cyber Security:,Cyber Security-Jobs:,Cyber Security Applications...
asked Nov 1, 2021 in Education by JackTerrance
0 votes
    Ping sweep is also known as ________________ (a) ICMP Sweep (b) ICMP Call (c) IGMP Sweep (d) ICMP ... ,Need-for-Cyber Security:,Cyber Security-Jobs:,Cyber Security Applications...
asked Nov 1, 2021 in Education by JackTerrance
0 votes
    Explain DevOps and how Jenkins is used in it?...
asked Oct 1, 2021 in Technology by JackTerrance
0 votes
    What is In-process Script Approval and how it works?...
asked Jul 17, 2021 in Technology by JackTerrance
0 votes
    How Tube Light Circuit Is Connected And How It Works?...
asked Dec 12, 2020 in Technology by JackTerrance
0 votes
    People including me know there is something in Python called __future__ and it appears in quite a few modules I read. ... am I right? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    My question may be silly but I've been trying several ways and I still can't do what I want, i. ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    Is it true that Seam only works with JSF?...
asked Jun 6, 2021 in Technology by JackTerrance
0 votes
    Ok, this is weird. My terminal (iterm2 with zsh) exits a command with control + m or control + ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 22, 2022 in Education by JackTerrance
0 votes
    How can we start using Jenkins from the command line?...
asked Oct 1, 2021 in Technology by JackTerrance
0 votes
    How does Jenkins achieve Continuous Integration?...
asked Oct 1, 2021 in Technology by JackTerrance
0 votes
    How to create & use a Shared Library in Jenkins?...
asked Sep 14, 2021 in Technology by JackTerrance
...