Re: max_conn too small, same bahaviour on linux

From: Ulric Eriksson (ulric@siag.nu)
Date: Wed Sep 18 2002 - 09:44:42 CEST


On Tue, 17 Sep 2002, Torsten Valentin wrote:

> server1:/tmp/pen-0.9.5# ulimit -n 20000
> server1:/tmp/pen-0.9.5# ulimit -n
> 20000
> server1:/tmp/pen-0.9.5# ./configure --with-poll --with-daemon
> --with-fd-setsize=20000

This doesn't work on Linux: even if FD_SETSIZE is redefined, select() will
still use the default.

You'll probably have more luck on OpenBSD.

> server1:/tmp/pen-0.9.5# make
> server1:/tmp/pen-0.9.5# ./pen -l /var/log/pen.log -C 26176 server1:26175
> server2:26175 server3:26175

You must tell pen to allow more simultaneous open connections. The default
is 256. To change it, use the -x option:

        pen -x 1000 [other options]

I also recommend the -d and -f flags for testing. Pen will write very
little information without -d (only fatal errors).

Ulric



This archive was generated by hypermail 2.1.2 : Wed Sep 18 2002 - 09:44:59 CEST