Archiva
  1. Archiva
  2. MRM-1097

Error 500 "too many open files"

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.3
    • Fix Version/s: 1.3.3
    • Component/s: system
    • Labels:
      None
    • Environment:
      Linux RedHat, Tomcat 6 + Native Connector
    • Number of attachments :
      1

      Description

      In our start-script we have configured "ulimit -n 10000"
      But still, occassionally we get http error 500 "java.io.FileNotFoundException ... (Too many open files)" on a Maven-artifact-request.

      I suppose the files are not properly closed after they are delivered.

      1. MRM-1097.patch
        54 kB
        Maria Catherine Tan

        Issue Links

          Activity

          Hide
          Brett Porter added a comment -

          I'll try to backport the fix

          Show
          Brett Porter added a comment - I'll try to backport the fix
          Hide
          Elie Delorme added a comment - - edited

          I just received this error on our archiva standalone 1.3.4 installation which we upgraded hoping that it would resolve the problem.
          The "Too many open files" appeared after only 3 hours uptime.

          2011-04-13 20:55:22,444 [WrapperSimpleAppMain] INFO  org.apache.maven.archiva.web.startup.Banner  - _________________________
                                    __________________________________
                         /\_       /                                  \
                        /`/@),    |  On behalf of all of the alpacas   |
                        |  (~'  __| toiling away on the Apache Archiva |
                _,--.___/  |    \      project team, I would like to   |
              ,' ,     (   |     \         welcome you to Archiva      |
              |  (      \  /      |               1.3.4                |
               \  )\_/  ,_/       |                                    |
               / /   ( |/         |     http://archiva.apache.org/     |
              ( |    ( |          |     users@archiva.apache.org       |
               \|     \|           \__________________________________/
          
          
          2011-04-14 00:09:43,639 [btpool0-8] WARN  org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors  - Transfer error from repository "terracotta" for artifact org.hibernate:ejb3-persistence:1.0.2.GA::pom, continuing to next repository. Error message: Download failure on resource [http://www.terracotta.org/download/reflector/releases/org/hibernate/ejb3-persistence/1.0.2.GA/ejb3-persistence-1.0.2.GA.pom]:Error transferring file: Too many open files (cause: java.net.SocketException: Too many open files)
          
          Show
          Elie Delorme added a comment - - edited I just received this error on our archiva standalone 1.3.4 installation which we upgraded hoping that it would resolve the problem. The "Too many open files" appeared after only 3 hours uptime. 2011-04-13 20:55:22,444 [WrapperSimpleAppMain] INFO org.apache.maven.archiva.web.startup.Banner - _________________________ __________________________________ /\_ / \ /`/@), | On behalf of all of the alpacas | | (~' __| toiling away on the Apache Archiva | _,--.___/ | \ project team, I would like to | ,' , ( | \ welcome you to Archiva | | ( \ / | 1.3.4 | \ )\_/ ,_/ | | / / ( |/ | http://archiva.apache.org/ | ( | ( | | users@archiva.apache.org | \| \| \__________________________________/ 2011-04-14 00:09:43,639 [btpool0-8] WARN org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors - Transfer error from repository "terracotta" for artifact org.hibernate:ejb3-persistence:1.0.2.GA::pom, continuing to next repository. Error message: Download failure on resource [http://www.terracotta.org/download/reflector/releases/org/hibernate/ejb3-persistence/1.0.2.GA/ejb3-persistence-1.0.2.GA.pom]:Error transferring file: Too many open files (cause: java.net.SocketException: Too many open files)
          Hide
          Brett Porter added a comment -

          Elie, as this is closed can you file a new issue against 1.3.4? There may be an additional cause, or it may require tuning on your limits.

          Show
          Brett Porter added a comment - Elie, as this is closed can you file a new issue against 1.3.4? There may be an additional cause, or it may require tuning on your limits.
          Hide
          Manfred Schürhoff added a comment -

          Hi,

          We're running Archiva 1.3.5 under Tomcat 7.0.4. We still run into the issue of "Too many open files" when running. We cleared out the local tomcat m2 repository, and while running a build, soon we get this error.
          We've also updated the /etc/security/limits.conf file for the tomcat user to:

          tomcat soft nofile 65535
          tomcat hard nofile 65535

          but without any luck.

          Is there any solution to this issue?

          Show
          Manfred Schürhoff added a comment - Hi, We're running Archiva 1.3.5 under Tomcat 7.0.4. We still run into the issue of "Too many open files" when running. We cleared out the local tomcat m2 repository, and while running a build, soon we get this error. We've also updated the /etc/security/limits.conf file for the tomcat user to: tomcat soft nofile 65535 tomcat hard nofile 65535 but without any luck. Is there any solution to this issue?
          Hide
          Brett Porter added a comment -

          Manfred, it's probably best to pursue this through the users@ list, or a new issue if you have a way to reproduce it. This issue was about a specific thing that was fixed some time back, and we'll lose track of comments here since it is closed. Thanks!

          Show
          Brett Porter added a comment - Manfred, it's probably best to pursue this through the users@ list, or a new issue if you have a way to reproduce it. This issue was about a specific thing that was fixed some time back, and we'll lose track of comments here since it is closed. Thanks!

            People

            • Assignee:
              Maria Odea Ching
              Reporter:
              Marc Lustig
            • Votes:
              6 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: