Skip to main content

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

Thanks Joakim

Would this not also happen on OS X, I'm only seeing the problem on unix

Thanks

On Monday, 31 March 2014, Joakim Erdfelt <joakim@xxxxxxxxxxx> wrote:
Likely cause, one of your libraries is *also* opening and reading the files in your war. (such as anything that does annotation scanning outside of the Servlet API, such as Spring).
We've seen conflicts arise with classloader caching in these situations.

--
Joakim Erdfelt <joakim@xxxxxxxxxxx>
Expert advice, services and support from from the Jetty & CometD experts


On Mon, Mar 31, 2014 at 7:20 AM, Toby Hobson <toby.hobson@xxxxxxxxx> wrote:
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




_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



Back to the top