Re: [jetty-user] Resource loading problems on x86_64 (Jetty 6)
David North <[email protected]>
| Newsgroups | gmane.comp.java.jetty.support |
|---|---|
| Message-ID | <[email protected]> |
Sorry, I should have followed this up to say that we found the source of the problem: by default, jetty unpacks the WAR file to /tmp. We had a cron job reaping old files from /tmp, and this was deleting the unpacked web app and all our resources, thus causing the problem. The fix is to follow http://docs.codehaus.org/display/JETTY/Temporary+Directories to get the web app unpacked to an alternative location outside /tmp. --David On 21/02/11 13:25, gabriel munteanu wrote: > maybe you reached the limit of opened files descriptors on your system ? > you should set it to maximum [65k or something]. > > cheers, jgabios > http://bash.editia.info > > > > On Mon, Feb 7, 2011 at 3:37 PM, David North > <[email protected]> wrote: >> Sorry, I should have mentioned - Fedora Core 14. >> >> >> On 07/02/11 13:26, Jesse McConnell wrote: >>> What OS? >>> >>> cheers, >>> jesse >>> >>> -- >>> jesse mcconnell >>> [email protected] >>> >>> >>> >>> On Mon, Feb 7, 2011 at 03:35, David North >>> <[email protected]> wrote: >>>> Hi, >>>> >>>> We're running Jetty 6.1.26 on Oracle Java 1.6.0_23-x86_64. We have a >>>> resource loading class in our web app which uses >>>> getClass().getResource() to load some SQL files. >>>> >>>> When the app is under heavy load from multiple concurrent users, the >>>> getResource() method sometimes starts returning null when asked for any >>>> resource. The only fix appears to be stopping and re-starting Jetty. >>>> Sometimes the problem occurs almost immediately at startup, and other >>>> times it's after we've been running for half an hour or so. >>>> >>>> We've unfortunately failed to reproduce the problem using a minimal test >>>> app, so I was wondering if the symptoms sounded at all familiar or >>>> anyone had any advice on what to try next? This has so far been seen on >>>> x64 JVMs only, and also affected Jetty 6.1.9. >>>> >>>> Many thanks, >>>> >>>> -- >>>> David North, Software Developer, CoreFiling Limited >>>> http://www.corefiling.com >>>> Phone: +44-1865-203192 >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe from this list, please visit: >>>> >>>> http://xircles.codehaus.org/manage_email >>>> >>>> >>>> >>> --------------------------------------------------------------------- >>> To unsubscribe from this list, please visit: >>> >>> http://xircles.codehaus.org/manage_email >>> >>> >> >> -- >> David North, Software Developer, CoreFiling Limited >> http://www.corefiling.com >> Phone: +44-1865-203192 >> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > -- David North, Software Developer, CoreFiling Limited http://www.corefiling.com Phone: +44-1865-203192 --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email