LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Too many Open Files Deployment exception in Linux and Jboss-AS7 as my App Server (https://www.linuxquestions.org/questions/linux-server-73/too-many-open-files-deployment-exception-in-linux-and-jboss-as7-as-my-app-server-4175414590/)

suman3dinnu 07-03-2012 02:47 AM

Too many Open Files Deployment exception in Linux and Jboss-AS7 as my App Server
 
Hi All.,

I am using Jboss As7 as my Application server in Linux box and i am facing issues while deploying my War Files . Below is my Stack Trace :
Caused by: java.io.FileNotFoundException: /home/appuser/dpc/jbossas7/standalone/tmp/vfs/deploymentca2dd52bc934385/xbean-2.1.0.jar-972256156c28c093/xbean-2.1.0.jar (Too many open files)
at java.io.FileOutputStream.open(Native Method) [rt.jar:1.6.0_22]
at java.io.FileOutputStream.<init>(FileOutputStream.java:209) [rt.jar:1.6.0_22]
at java.io.FileOutputStream.<init>(FileOutputStream.java:160) [rt.jar:1.6.0_22]
at org.jboss.vfs.TempDir.createFile(TempDir.java:93)
at org.jboss.vfs.spi.JavaZipFileSystem.<init>(JavaZipFileSystem.java:83)
at org.jboss.vfs.VFS.mountZip(VFS.java:408)
at org.jboss.vfs.VFS.mountZip(VFS.java:434)
at org.jboss.as.web.deployment.WarStructureDeploymentProcessor.createWebInfLibResources(WarStructureDep loymentProcessor.java:170)
... 8 more


I don’t know where i am doing wrong , Is there any additional configuration required from Linux side . Can any one tell me the reason behind this . i bit confused the issue at Linux or Jboss end???


Thanks in Advance,
suman alapati.

MensaWater 07-03-2012 08:35 AM

You might want to have a look at ulimit (e.g ulimit -a) for the user you're trying to run this as.

You can change limits in /etc/security/limits.conf (on RedHat derived distros at least).

Typing "man ulimit" will open the bash man page and you can search for discussion of ulimit within that. Typing "man limits.conf" will open man page for the structure of that file.

My first guess would be your error is about user limits controlled by ulimit but it is possible that the jar itself is setting some sort of limit.

jsaravana87 07-04-2012 12:55 AM

Hi
Look after these link


http://www.linuxquestions.org/questi...centos-942480/

http://www.chrissearle.org/blog/tech...sh_user_debian

anomie 07-04-2012 08:47 AM

There's also a (kernel) sysctl MIB that could be affecting your upper limit of open files. Post output from:
Code:

# sysctl fs.file-max


All times are GMT -5. The time now is 09:16 PM.