problem with the connection's limit.. i think...

If none of the more specific forums is the right place to ask

problem with the connection's limit.. i think...

Postby maxy » 2006-01-01 14:08

someoane can help me... when i get over ~1000 active connections on my server... make's me problems... i can't make new connections and bla bla bla bla... in the verlihub manual i fine some things... I aply them... but not useful :-/

From verlihub manual:

In /etc/security/limits.conf, add the lines:

* soft nofile 4096
* hard nofile 4096

In /etc/pam.d/login, add:

session required /lib/security/

Then increase the system-wide file descriptor limit by adding the following lines to the /etc/rc.d/rc.local startup script:

echo 16256 > /proc/sys/fs/file-max
echo 24576 > /proc/sys/fs/inode-max

Also, you can run these commands at the command line and/or you can add them to your .bash_profile so you don't need to re-enter them.

You will then need to tell the system to use the new limits (bash):
ulimit -n unlimited


server:/home/max# ulimit -n unlimited
-bash: ulimit: open files: cannot modify limit: Operation not permitted

server:/home/max# echo 24576 > /proc/sys/fs/inode-max
-bash: /proc/sys/fs/inode-max: No such file or directory

Return to General Questions

Who is online

Users browsing this forum: 4D696B65 and 13 guests