[H-GEN] Apache and Virtual Hosts

Martin Pool martinp at mincom.com
Tue Dec 14 21:01:45 EST 1999


[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics.  Please observe the list's charter.          ]

Bruce Campbell wrote:

> Compare also the advantages of not using abhorrent numbers of file
> descriptors, which incidentally are implemented as linked lists on some
> operating systems

Really?  Bizarro, considering that they're nice low whole numbers as if
to imply an array lookup.

> ie, one IP address, ergo, one file descriptor.  You could also put all of
> your access logs into one file (ie, one more) and ditto for the error
> logs. (now apache is using ~3 file descriptors total for an undefined
> number of virtual domains, rather than using 3*undefined_number file
> descriptors).

Yes, that's an interesting phenomenon.  It's hard to think of a good
quick solution: lazily opening and closing file descriptors would be too
expensive.  I suppose one could grep the log afterwards to split it up,
if for example you had to give customers logs for just their own
domains.  Still, with up to about 5k domains on a machine it's not
unreasonable to have 3n files open.

-- 
 /\\\  Mincom | Martin Pool          | martinp at mincom.com
// \\\        | Software Engineer    | Phone: +61 7 3303-3333
\\ ///        | Mincom Limited       | Teneriffe, Brisbane
 \///         | And now a word from our sponsor...

This transmission is for the intended addressee only and is
confidential information. If you have received this
transmission in error, please delete it and notify the
sender. The contents of this E-mail are the opinion of the
writer only and are not endorsed by Mincom Limited unless
expressly stated otherwise.

--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.



More information about the General mailing list