Re: [Resin-interest] Too many open files
I'm assuming this is on Linux or something else that's Unixy. You can find out what your limit for open files is by typing ulimit -a. Here's an example from one of my systems: . Do a man bash and search for ulimit if you want more details. Thanks very much for your help Jose. Sam. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Too many open files
I'm assuming this is on Linux or something else that's Unixy. You can find out what your limit for open files is by typing ulimit -a. Here's an example from one of my systems: # ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited max nice(-e) 0 file size (blocks, -f) unlimited pending signals (-i) 131072 max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size(512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 max rt priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 131072 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited As you can see, the default limit for open files is 1024. You can set this for your session uing ulimit like this: ulimit -n 1. To make it sticky across reboots you'll have to edit /etc/security/limits.conf and add a line that reads something like this: resin hardnofile 1 Do a man bash and search for ulimit if you want more details. HTH, Jose. sksamuel wrote: [2007-03-13 03:00:13] Error rotating logs java.io.FileNotFoundException: /home/live/clearcomm.7soft.co.uk/WEB-INF/logs/access.log (Too many open files) Using resin 3.0.21 Getting this in the log files got 2000 open descriptors if I check using lsof of which 600 odd are in use by resin. That doesn't seem a lot to me ? ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] too many open files
On Sep 18, 2006, at 10:34 AM, David Hansen wrote: Following the suggested lsof idea, it appears that Resin is continually opening file descriptors to the same jar. java 11390root 33u REG8,3 1886356 503420273 /opt/deployments/jars/wtcls.jar about 900 more of these referencing wtcls.jar Thanks. How is that .jar configured in the resin.conf? Can you give the class-loader section of the resin.conf that references it? In particular, if it's defined in a web-app-default or defined directly in a web-app, but some other detail might matter. -- Scott java 11390root 1020r REG8,3 1886356 503420273 /opt/deployments/jars/wtcls.jar java 11390root 1021r REG8,3 1886356 503420273 /opt/deployments/jars/wtcls.jar java 11390root 1022r REG8,3 1886356 503420273 /opt/deployments/jars/wtcls.jar java 11390root 1023r REG8,3 1886356 503420273 /opt/deployments/jars/wtcls.jar When the number of open files reaches the kernel's max, Resin falls over and restarts itself, then begins the process again. Additional information( if it helps ): wtcls.jar is our own code. it is symlinked to resin_home/lib/local/ wtcls.jar If we remove the symlink, resin will do the same thing, but with a different jar file( in this case, wicket.jar, from the wicket project ) Any help solving this problem would be appreciated, thanks. - Dave ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest