Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Too many open files at startup (on linux)

#178

Hi,

with the 1.1.0 and the launcher (on linux/ubuntu), when I start rundeck the first time, everything is working.
But if I shut it down, and re-start it (either using the launcher or the rundeckd script), I got the following exception :

Exception in thread "main" java.io.FileNotFoundException: /tmp/rundeck/server/exp/webapp/WEB-INF/lib/activation-1.1.jar (Too many open files)
at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.(FileOutputStream.java:179) at java.io.FileOutputStream.(FileOutputStream.java:131) at com.dtolabs.rundeck.ZipUtil.extractZip(Unknown Source) at com.dtolabs.rundeck.ZipUtil.extractZip(Unknown Source) at com.dtolabs.rundeck.ZipUtil.extractZip(Unknown Source) at com.dtolabs.rundeck.ZipUtil.extractZip(Unknown Source) at com.dtolabs.rundeck.ExpandRunServer.extractWar(Unknown Source) at com.dtolabs.rundeck.ExpandRunServer.run(Unknown Source) at com.dtolabs.rundeck.ExpandRunServer.main(Unknown Source)

of course it is not that the file doesn't exists, just that the jvm has too many open files.

Thanks

Reported by Vincent Behar · January 19th, 2011 @ 08:31 AM

State: new
Milestone: Rundeck 1.3
Assigned to: Alex-SF Alex-SF

Activity

  1. Vincent Behar
    Vincent Behar

    Thanks, I got it working using http://posidev.com/blog/2009/06/04/set-ulimit-parameters-on-ubuntu/
    - edit /etc/security/limits.conf (add "* - nofile 8000") - edit /etc/pam.d/common-session (add "session required pam_limits.so") - reboot

    perhaps someone can update the FAQ, at least to say that if we got this error we need to tweak the OS config.
    But it's strange that it works on the first run and not on the second one : the first run of the launcher is supposed to unpack a whole lot of files, and so have more "open files"...

    February 14th, 2011 @ 01:07 PM

  2. Alex-SF
    Alex-SF
    • Tag set to documentation
    • Assigned user set to Alex-SF

    Making this a documentation task.

    April 27th, 2011 @ 01:33 PM

  3. Alex-SF
    Alex-SF
    • Milestone set to Rundeck 1.3
    • Milestone order changed from 7 to 0

    April 27th, 2011 @ 06:06 PM

  4. Vincent Behar
    Vincent Behar

    Thanks Kelth, your solution works well.
    I just set up a new rundeck instance on a new linux server, and to fix the problem (i am not root) I edited the "etc/profile" file :

    Set min/max heap size

    export RDECK_JVM="$RDECK_JVM -Xmx1024m -Xms256m -XX:NewSize=1024k"

    (add "-XX:NewSize=1024k" at the end)

    Alex, do you think you can add this parameter in the file for the next version ?

    May 25th, 2011 @ 06:41 AM

  5. Alex-SF
  6. Jordan Curzon
    Jordan Curzon

    The XX:NewSize didn't help me any, but removing the -Xms argument from etc/profile did.

    June 14th, 2011 @ 04:30 PM

  7. Alex-SF
    Alex-SF
    • State changed from new to resolved

    Added to 07-chapter1.md doc.

    July 8th, 2011 @ 02:15 PM

  8. Greg Schueler

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.