Re: System Limits (in Debian)
On Thu, May 10, 2001 at 05:59:37PM -0700, Mike Fedyk wrote: > 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. /etc/init.d/procps.sh man sysctl.conf
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
System Limits (in Debian)
Hi all, I have a site running Debian GNU/Linux 2.2 and caucho servlet (www.caucho.com) for serving web games. It's a P III 700 Mhz with 512 Mb and it's in limit. A technical staff sugested to change some system limits as bellow. I changed at the machine, rebooted and didnt work. Can anyone help me? TIA, Paulo Henrique 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 And for the file _/etc/security/limits.conf_ add these two lines (or change the existing entries to match them) * soft nofile 1024 * hard nofile 10240 I'm afraid you need to reboot the server (the machine) to activate these changes. Please note that I am not sure that these changes are correct on a Debian Linux distribution, have your system administrator double check these settings. With the file handle limits raised like this the MPGC should be able to accept 10 times more concurrent connections as currently the case. -- Paulo Henrique B de Oliveira Gerente de Operações - Linux Solutions - http://www.linuxsolutions.com.br O maior conteúdo de Linux em língua portuguesa - OLinux - http://www.olinux.com.br (21)526-7262 ramal 31