Too many open files upon HTTP listener init or shutdown

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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

            Assignee:
            Kohsuke Kawaguchi
            Reporter:
            Krzysztof Malinowski
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: