title: Disable pinging slaves in Jenkins
body: <p>So, we are seeing tons of our EC2 slaves go offline (using EC2 plugin). So to debug it I am trying to disabe pinging thread based on the article <a href="https://wiki.jenkins-ci.org/display/JENKINS/Ping+Thread" rel="noreferrer">Pinging thread</a> where they talk about disabling the ping thread on the master JVM on a running jenkins using: </p>
  
  <p>Jenkins.instance.injector.getInstance(hudson.slaves.ChannelPinger.class).@pingInterval = -1</p>
  
  <p>and to disable slaves from pinging the master, the system property -Dhudson.remoting.Launcher.pingIntervalSec=-1 needs to be set to slaves.</p>
  
  <p><strong>Questions:</strong></p>
  
  <ol>
  <li>Where and how do I add the pingInterval value to -1?</li>
  <li>How and where do I set the system property for pingIntervalSec=-1</li>
  </ol>
  
  <p>We are seeing tons of slaves going offline and I want to see if ping interval can help. </p>
  
  <p>Thanks,
  Jason</p>