| From: | Martin Tomes <martin(dot)tomes(at)controls(dot)eurotherm(dot)co(dot)uk> |
|---|---|
| To: | "Tim Barnard" <tbarnard(at)povn(dot)com> |
| Cc: | <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: Too many open files! how do I fix on linux? |
| Date: | 2001-01-29 09:29:42 |
| Message-ID: | uwvbeln95.fsf@martin.controls.eurotherm.co.uk |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
>>>>> "Tim" == Tim Barnard <tbarnard(at)povn(dot)com> writes:
Tim> <snip>
>> I set to 16384. with about 100 clients this seems to be enough. Best
>> way to set it is in your local rc script (/etc/rc.d/rc3.d/*local)
Tim> <snip>
Tim> How do you go about doing this on a RedHat 6.2 system? There is an
Tim> S99local file but nothing in it on setting maximum open files.
I had to do this last week. On RedHat 6.2 put this at the end
of /etc/rc.d/rc.local:
echo 8192 > /proc/sys/fs/file-max
echo 32768 > /proc/sys/fs/inode-max
It increases file handles to 8192, you are supposed to have four times as many
inode handles as file handles so it increases those too.
--
Martin Tomes
Martin(dot)Tomes(at)controls(dot)eurotherm(dot)co(dot)uk
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Gilles DAROLD | 2001-01-29 09:29:59 | Re: Connection Pool |
| Previous Message | Pete Forman | 2001-01-29 08:39:22 | Re: beta3 Solaris 7 (SPARC) port report |