Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Too many open files when using Jetty (8+) on ubuntu

I'm running a grails application on jetty 9 (but I've also tested on jetty 8) and I see some strange behavior. When deployed on my os x development machine the app runs fine but on linux (ubuntu) jetty is opening a massive amount of file descriptors. For example on OS X i see around 400 file descriptors, but on ubuntu it is always 25k+

The problem seems to be that jetty is opening multiple file descriptors for the jars in the war e.g.

java 15238 16672 jetty mem REG 202,1 575389 1239666 /tmp/jetty-0.0.0.0-8080-root.war-_-any-6199673264702494065.dir/webapp/WEB-INF/lib/commons-collections-3.2.1.jar

java 15238 16672 jetty 159r REG 202,1 575389 1239666 /tmp/jetty-0.0.0.0-8080-root.war-_-any-6199673264702494065.dir/webapp/WEB-INF/lib/commons-collections-3.2.1.jar

java 15238 16672 jetty mem REG 202,1 575389 1239666 /tmp/jetty-0.0.0.0-8080-root.war-_-any-6199673264702494065.dir/webapp/WEB-INF/lib/commons-collections-3.2.1.jar

java 15238 16672 jetty 159r REG 202,1 575389 1239666 /tmp/jetty-0.0.0.0-8080-root.war-_-any-6199673264702494065.dir/webapp/WEB-INF/lib/commons-collections-3.2.1.jar

...

This pattern will be repeated again and again for each jar i.e. "grep commons-collections lsof.log | wc -l" shows 145 entries

Does anyone have any idea what could be causing this?

Many thanks

Toby




Back to the top