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

Jetty based jenkins leaves many sockets in close_wait state

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major Major
    • core
    • None

      I woke up one morning and the jenkins UI was unavailable. Logs show that it was still processing builds.

      lsof revealed a lot of hanging connections:

      java       2559 jenkins 1314u     IPv6          240423343      0t0        TCP localhost:webcache->localhost:54609 (CLOSE_WAIT)
      java       2559 jenkins 1315w     IPv6          240423345      0t0        TCP localhost:webcache->localhost:39608 (CLOSE_WAIT)
      java       2559 jenkins 1316u     IPv6          240423348      0t0        TCP localhost:webcache->localhost:39609 (CLOSE_WAIT)
      java       2559 jenkins 1317u     IPv6          240423351      0t0        TCP localhost:webcache->localhost:54613 (CLOSE_WAIT)
      java       2559 jenkins 1318u     IPv6          240423354      0t0        TCP localhost:webcache->localhost:39612 (CLOSE_WAIT)
      java       2559 jenkins 1319u     IPv6          240423358      0t0        TCP localhost:webcache->localhost:39613 (CLOSE_WAIT)
      java       2559 jenkins 1320u     IPv6          240423360      0t0        TCP localhost:webcache->localhost:39614 (CLOSE_WAIT)
      java       2559 jenkins 1321u     IPv6          240423362      0t0        TCP localhost:webcache->localhost:54621 (CLOSE_WAIT)
      

      There were almost 700 of these. Restarting jenkins cleared the problem, but this very disruptive. What's going on?

            Unassigned Unassigned
            cg Christian Goetze
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: