You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Randy Terbush <ra...@zyzzyva.com> on 1995/12/14 19:49:10 UTC

Re: Number of Virtual Servers

> Randy Terbush wrote:
> > 
> > I discovered this morning when adding my 25th VirtualHost that
> > the setrlimit feature was broken for SUNOS4 compiles. This 
> > must have happened awhile back when we changed the define in
> > http_config.c to check for RLIMIT_NOFILE getting defined for
> > the platforms that were including <sys/resource.h>.
> > 
> 
> Not related to patches at all, but how many fd's does SunOS4 allow
> by default?

It appears that it is 64. This may be hardcoded in a kernel object
file as near as I can find. This is the soft limit. Hard limit is
256.

> The reason I;m asking is because under A/UX we are limited to 128 file-
> descriptors and we would like a feel for how many we can run before
> we hit the wall. If you were able to run 24 virtuals with the same
> number, I'd breathe a bit easier :)
> 
> Max so far has been 8.

I would guess you can handle around 50 at that limit. If you have
the setrlimit() function, the server should bump this limit as it
adds VirtualHosts IF you have set HAVE_RESOURCE in conf.h for A/UX.

The problem I ran into was that the code in conf_virtual_host()
was not uping this limit for SUNOS.