Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 08-04-2006, 11:32 PM   #1
LQ Newbie
Registered: Sep 2004
Posts: 7

Rep: Reputation: 0
Question 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
auth required
auth include common-auth
auth required
auth required
account include common-account
password include common-password
session include common-session
session required
session required

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?
Old 08-06-2006, 08:28 AM   #2
spirit receiver
Registered: May 2006
Location: Frankfurt, Germany
Distribution: SUSE 10.2
Posts: 424

Rep: Reputation: 33
I think that
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
bryce hard nofile 2048
bryce soft nofile 2048
This works fine here.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Maximum number of files in a directory neranjana General 14 05-13-2010 01:33 PM
Low open file descriptor limit Suse 9.2 kryten SUSE / openSUSE 3 12-20-2004 12:20 AM
Limit of maximum files/direstories per directory? sindri Linux - Software 3 11-14-2004 11:56 AM
Squid - Maximum time limit per user vkothiyal Linux - Software 0 05-29-2004 07:36 AM
process wide limit on Maximum file desriptors edreddy Linux - General 5 08-31-2002 12:35 PM

All times are GMT -5. The time now is 04:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration