-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 26/04/11 14:27, Артём Жирков wrote: > Hello, > My webserver suffer from open limit in 1024 files, so I tried to > increase it, but without much luck. > At first, I changed sysctl value: > (root@server2)-(~) $ cat /etc/sysctl.conf | grep fs.file > fs.file-max = 12000 > (root@server2)-(~) $ cat /proc/sys/fs/file-max > 12000 > then I played a little with user specific limits: > (root@server2)-(~) $ cat /etc/security/limits.conf | grep nofile > # - nofile - max number of open files > * soft nofile 12000 > * hard nofile 12000 > > however even after reboot ulimit -n shows me old value: > (root@server2)-(~) $ ulimit -n > 1024 > Of course, I can increase the value by ulimit -n 12000 but this change > won't be persistent. > > Can anyone help me? Server run on debian 5.0.8
did you enabled limits change in pam? if not it won't let you change it. check it (hint grep -irn "pam_limits" /etc/pam.d/*") - -- |_|0|_| | |_|_|0| "Heghlu'Meh QaQ jajVam" | |0|0|0| -------- kuLa --------- | gpg --keyserver pgp.mit.edu --recv-keys 0xC100B4CA -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQEcBAEBAgAGBQJNtuZdAAoJEOqHloDBALTKoWMH/3rh2e504T95dr7JFpbCB4ie afv4DxEI4Ztaa/8mysmNY9uddVJbYIozC0wxlA5FCnZOgquCr8qc1+2UP+wuERMx 4cvGQJvkukPa71xpioar4kmHNNW7iwx7ssw/ncSAT2kHzHee5cknSB/YQJQ0cKUd Oz7WujUIY7lVjfJgvPqW4eABLiay5cycG82bAIYNhIISLqcZFWGu0C3kckAOZs5d zTbrpYBA8vQwpnG9Gh+75Xrpyjcg49g09oLnzh9YITowxDD8dOgR8p3YkirCP5YZ YkLyK0jjLCCaDR0NjZ4KDzpwbrSQFtatB0QbF8L4o0/6oswAxgiLd/DgorMMNbc= =TQCi -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4db6e65d.70...@kulisz.net