[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] 2 domains one website
- Subject: Re: [cobalt-users] 2 domains one website
- From: Jens Kristian Søgaard <jens@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri Jan 26 07:19:03 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> Does it keep the one file descriptor per site open the entire time the
> script is running? If so, does it keep the file descriptors open as one
> process, subject to the 256-descriptor per process limit?
Yes.
> Even so, that's better than keeping them open all the time, as apache
> would do.
Hmm, why do you think so?
You will still bump into a "maximum number of sites"-limit. Then it doesn't
matter if it has the descriptors open for 10 minutes or 24 hours.
> > You might want to write a more complicated perl script, that takes care
of
> > file descriptor management.
> One helpful individual told me I could write a simple shell script using
> "cut". Would that get around the file-descriptor limit? Since it opens
> each file one at a time and closes it, my guess is it would, but I don't
> know the kernal internals, and haven't tried. What's your opinion?
Yes, sure it would get around the file-descriptor limit. It would however
also be a very naive implementation, that would run very slowly. It could
only be used as a "proof of fact"-prototype.
--
Jens Kristian Søgaard, Mermaid Consulting I/S,
jens@xxxxxxxxxxxxxxxxxxxx,
http://www.mermaidconsulting.com/