On Wednesday 23 November 2005 15:20, Jesús García Crespo wrote: > Hi! I have an Apache server running under one User-Mode-Linux system > and I detected that the UML crashed very soon when I started httpd > since there were many vhosts, each one with a different access_log and > error_log fiel. Maybe, as I saw in the Apache configuration, too many > file descriptors. > > However I have others non-UML servers running Apache with more vhosts > in the same way (one access_log and one error_log per vhost) and there > were no problem. > > What could be happening? I will paste some information: > > $ ulimit -n > 1024 > > $ cat /proc/sys/fs/file-max > 29934 > > $ /proc/sys/fs/file-nr > 425 0 29934 > > > I detected the problem because it happened a big time I did not touch > that system. One day I added one more vhost and from this time it > started to crash. Now I setup Apache to record the logs in the same > file for all vhosts and the problem is over (although I would prefer to > increase the number of opened files, for example if it will fix it).
Makes sense, but missing a detail: since you say that the whole UML is crashing, are you using hostfs for the logs (or for anything)? Opening a file on hostfs consumes a fd (not permanently - just as long as the file is open in the guest), so the kernel crashes as soon as it opens a file (in SKAS3 mode, once per fork()/exec() at least). In that case, increasing the ulimit on the host (play with ulimit and the PAM configuration file /etc/limits.conf, or wherever it is) should solve the problem. -- Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894) http://www.user-mode-linux.org/~blaisorblade ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ User-mode-linux-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
