1 Reply Latest reply on Jul 16, 2002 8:02 AM by Qingxian Wang

    "Too many open files"- when under the heavy load of deploy a

    Qingxian Wang Newbie

      Hi,

      We are using JBoss3.0.0 on Windows2000. We have automatic build test every half hour with deploying and undeploying serveral EARs. It sometime happens one or twice a day, or sometimes once a few days that the JBoss server throws exceptions complaining "Too many open files" and can't deploy an EAR file. We have checked in our code to make sure no files or IO streams left without closed, but it still happens. Is this could be a bug in JBoss? Our only solution at the moment is to restart JBoss server, but it will cause a lot problems if we are doing this frequently on a live server. Any solutions?

      Thanks.

      Qingxian

        • 1. Re: "Too many open files"- when under the heavy load of depl
          Qingxian Wang Newbie

          We used Windows Performance Monitor (perfmon command) to monitor the handle counter of the Java process of JBoss. It shows that we deploying and undeploying an EAR file, JBoss does not release all file handles that should be released. When we are repeating deploy-undeploy process on the same EAR file, the handle counter increased steadily until no more file handles left for JBoss to use. At that time, JBoss throws java.io.FileNotFoundException.

          I guess that JBoss does not clean out the reference to certain JAR files held after undeployed an EAR file.

          This problem could cause live systems to fail frequently.

          Any solutions?

          We used Windows Performance Monitor (perfmon command) to monitor the handle counter of the Java process of JBoss. It shows that we deploying and undeploying an EAR file, JBoss does not release all file handles that should be released. When we are repeating deploy-undeploy process on the same EAR file, the handle counter increased steadily until no more file handles left for JBoss to use. At that time, JBoss throws java.io.FileNotFoundException.

          I guess that JBoss does not clean out the reference to certain JAR files held after undeployed an EAR file.

          This problem can cause a system to fail periodically.

          Any solutions?

          Qingxian