spallai [
http://community.jboss.org/people/spallai] created the discussion
"Too many open files"
To view the discussion, visit:
http://community.jboss.org/message/619646#619646
--------------------------------------------------------------
My application needs a restart, when encountered with "Too many open files",
because most of the functionality was failing. The console logs is full of below
stacktrace. Environment used id java1.6 & JBoss [Zion] 4.0.3SP1 (build:
CVSTag=JBoss_4_0_3_SP1 date=200510231054).
10:51:59,496 ERROR [MainDeployer] Could not initialise deployment:
file:/export/home/jboss/server/insight/deploy/jboss-aop.deployer/
org.jboss.deployment.DeploymentException:
/export/home/jboss/server/insight/deploy/jboss-aop.deployer/META-INF/jboss-service.xml
(Too many open files); - nested throwable: (java.io.FileNotFoundException:
/export/home/jboss/server/insight/deploy/jboss-aop.deployer/META-INF/jboss-service.xml
(Too many open files))
at org.jboss.deployment.SARDeployer.init(SARDeployer.java:200)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:843)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:780)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy9.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)
Caused by: java.io.FileNotFoundException:
/export/home/jboss/server/insight/deploy/jboss-aop.deployer/META-INF/jboss-service.xml
*(Too many open files)*
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at
org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:93)
at java.net.URL.openStream(Unknown Source)
at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:582)
at org.jboss.deployment.SARDeployer.init(SARDeployer.java:164)
... 21 more
10:51:59,503 ERROR [MainDeployer] Could not initialise deployment:
file:/export/home/jboss/server/insight/deploy/jboss-bean.deployer/
org.jboss.deployment.DeploymentException:
/export/home/jboss/server/insight/deploy/jboss-bean.deployer/META-INF/jboss-service.xml
*(Too many open files);* - nested throwable: (java.io.FileNotFoundException:
/export/home/jboss/server/insight/deploy/jboss-bean.deployer/META-INF/jboss-service.xml
(Too many open files))
10:51:58,601 ERROR [MainDeployer] Could not make local copy for
file:/export/home/jboss/server/insight/deploy/ormGsxUpgradeIntf.jar
java.io.FileNotFoundException:
/export/home/jboss/server/insight/tmp/deploy/tmp1896466099165637966ormGsxUpgradeIntf.jar
(Too many open files)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at org.jboss.deployment.MainDeployer.copy(MainDeployer.java:1206)
at org.jboss.deployment.MainDeployer.makeLocalCopy(MainDeployer.java:1151)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:822)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:780)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy9.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)
10:51:58,604 WARN [JARDeployer] Failed to add deployable jar:
Folks, any idea what would be causing this, or any patch that has the fix available
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/619646#619646]
Start a new discussion in JBoss Web Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]