Forum OpenACS Q&A: open files for openacs?

Collapse
Posted by Jonathan Ellis on
my file-max is set to 8192, which I thought was plenty.  "Normal"
usage shows PG using 2300 handles, nsd using about 1000, and
everything else using 500.  However, twice today PG was restarted by
my watchdog script after stuff started failing with "file table
overflow" all over my logs.  /proc/sys/fs/file-nr confirms that it
did indeed max out.  Should I just add to the limit, or is this
indicative of a PG config problem or bug?
Collapse
Posted by Jun Yamog on
Hi Jonathan,

My suggestion is to just add to that.  We have reached this limit easily, and I believe Museah also uses a high file-max on their server.  I think I have set our server to 16K.  Or maybe higher.

Unless you are running a small OpenACS site and you are reaching the limit, I think it is safe to say that this in an indication that you are really using postgres.

Collapse
Posted by Jonathan Ellis on
Sounds good.  Strange, though, b/c I've handled probably 150% of today's traffic on several occasions in the past w/o this happening.  Maybe I was just lucky.