One of the jenkins slave is going down very often. Found RCA for this issue. It's because of the Ping thread
In the logs I fetch from agent, I have:
Terminating the channel channel. java.util.concurrent.TimeoutException: Ping started at 1576130988405 hasn't completed by 1576131228405 at hudson.remoting.PingThread.ping(PingThread.java:134) at hudson.remoting.PingThread.run(PingThread.java:90)
I wanted to disable the ping thread on the agent. In the documentation it's mentioned as
But I do not understand how to execute this on remote machine.
I followed this link. but that solution is for JNPL. I am launching the agent on the node via ssh.