LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   new maximum open files limit - ignored? (https://www.linuxquestions.org/questions/red-hat-31/new-maximum-open-files-limit-ignored-470921/)

brycen 08-04-2006 11:32 PM

new maximum open files limit - ignored?
 
I've tried various things to increase the per-uer maximum open files limit from 1024 to something higher. I've read all the threads on this topic here.

I've tried:

bryce@linux> cat /etc/security/limits.conf
* hard nofile 2048
bryce hard nofile 2048

bryce@linux:~> ulimit -n 4000
bash: ulimit: open files: cannot modify limit: Operation not permitted

linux:/home/bryce # cat /etc/initscript
ulimit -n 2047

linux:/home/bryce # cat /etc/pam.d/login
#%PAM-1.0
auth required pam_securetty.so
auth include common-auth
auth required pam_nologin.so
auth required pam_mail.so
account include common-account
password include common-password
session include common-session
session required pam_resmgr.so
session required pam_limits.so


But I still seem limited to 1024 open files:

bryce@linux:~> ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024 <-------
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) unlimited
cpu time (seconds, -t) unlimited
max user processes (-u) 6143
virtual memory (kbytes, -v) unlimited

Event after reboot.
How can I get the OS to respect my nofile limit?

spirit receiver 08-06-2006 08:28 AM

I think that
Code:

bryce hard nofile 2048
will only allow bryce to increase the limit manually using "ulimit -n 2048". If you want to have it increased by default, use
Code:

bryce hard nofile 2048
bryce soft nofile 2048

This works fine here.


All times are GMT -5. The time now is 11:28 PM.