Re: [phplib] PHPLIB failing under heavy use From: Bryan Willett (bryan <email protected>)
Date: 06/25/00

On Sun, 25 Jun 2000, Jan Johansson wrote:

> > I've got file-max in the proc system set to 8192. cat file-nr
> > reports 3420 982 8192. Inode-max is ~16000. After extended use
> > random errors messages that contain "bad file descriptor in db_pgsql.inc
> > on line 52" begin to occur.
>
>
> Means your kernal cannot have more files open. by default Linux only handles
> 1024 as a max, i think you can bump it to 4096, but thereafter you need to
> seriously modify ther kernl..
>

At most I've got about 30 people logged in at once. I don't see
how that many people can be using 1024 open files. Is it possible
that PHPLIB or the kernel isn't correctly freeing file descriptors?

And occasionally the open files, the middle number in file-nr,
will exceed 1024 and no noticeable errors occur.

Does PHPLIB use a file descriptor for every query that it issues?

Could I cut down on open file descriptors if I avoided using
the database wrappers in PHLIB for some queries

Please help as I'd rather not annoy all my players who just
joined with annoying error messages.

Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>