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

Too many open files upon HTTP listener init or shutdown

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: core
    • Environment:
      Jenkins 1.472 on RHEL 5 x86_64
    • Similar Issues:

      Description

      Trying to navigate to Jenkins web site, browser keeps loading and loading. When checked on Jenkins console it showed that Jenkins failed with the following:

      Jul 6, 2012 1:49:28 PM winstone.Logger logInternal
      SEVERE: Error during HTTP listener init or shutdown
      java.net.SocketException: Too many open files
              at java.net.PlainSocketImpl.socketAccept(Native Method)
              at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:408)
              at java.net.ServerSocket.implAccept(ServerSocket.java:462)
              at java.net.ServerSocket.accept(ServerSocket.java:430)
              at winstone.HttpListener.run(HttpListener.java:136)
              at java.lang.Thread.run(Thread.java:662)
      

      I have verified open files and it seems that unreasonable large number of descriptors is open to various jar files, with jenkins-core being the leader:

      $ ls -la /proc/26867/fd | grep jar | wc -l
      876
      $ ls -la /proc/26867/fd | grep jenkins-core | wc -l
      462
      $ ls -la /proc/26867/fd | grep stapler | wc -l
      173

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kohsuke Kohsuke Kawaguchi
                Reporter:
                raspy Krzysztof Malinowski
              • Votes:
                13 Vote for this issue
                Watchers:
                19 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: