[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: System Limits (in Debian)



On Thu, May 10, 2001 at 03:52:15PM -0300, Paulo Henrique Baptista de Oliveira wrote:
>    We looked into the problem you reported. I think I know what the problem
> is. The maximum number of file handles per process is set too low on the
> MPGC server. Each connection requires one or more file handles so the
> maximum number of file handles is a hard limit for the maximum number of
> concurrent connections. The log files show that the number of users has
> almost doubled the last few weeks (that's great) the logfiles also shows
> that the file handle problem kicks in when the number of users started
> growing. This started on Sunday April 8.
> 
> In order to fix this problem you have to set some settings on the server.
> You use a Debian Linux distribution and I do not know 100% sure how to do it
> on Debian Linux but on Redhat and SuSE Linux it can be done like this:
> 
> As root edit the file _/etc/sysctl.conf_ and add the following two lines (or
> change the existing entries to match them)
> 
> fs.file-max = 10240
> 
> fs.inode-max = 40960

put:
echo 10240 > /proc/sys/fs/file-max
echo 40960 > /proc/sys/fs/inode-max

in a bootup script, probably whatever starts your servers.

> I'm afraid you need to reboot the server (the machine) to activate these
> changes.
> 
You probably don't, just find the bootup script that reads this file and
find how to activate it.

Mike



Reply to: