Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-44634

JNLP Rejected Agent Connections Leak Socket Handles

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • core

      If a JNLP agent repeatedly tries to connect while there is a valid connection already established, Jenkins will open a socket but not close it after rejecting the connection. This pattern can continue to repeat until the Jenkins process hits an open file limit imposed by the operating system, leading to the disconnection of all agents.

      These can be seen with:

      $ lsof -u $JENKINS_USER
      ...
      java 29334 jenkins-ci 12u sock 0,6 0t0 284498333 can't identify protocol
      

      This issue can be resolved by restarting Jenkins, the OS networking subsystem, or possible by connecting gdb and manually closing open sockets.

        1. jnlp-reconnections.log
          2 kB
          Trevor Bramwell
        2. jnlp-too-many-open-files.log
          2 kB
          Trevor Bramwell

            Unassigned Unassigned
            bramwelt Trevor Bramwell
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: