Too many Open Files Deployment exception in Linux and Jboss-AS7 as my App Server
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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???
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.