LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 08-04-2006, 11:32 PM   #1
brycen
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
#%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?
 
Old 08-06-2006, 08:28 AM   #2
spirit receiver
Member
 
Registered: May 2006
Location: Frankfurt, Germany
Distribution: SUSE 10.2
Posts: 424

Rep: Reputation: 33
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.
 
  


Reply


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/Novell 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 08:05 AM.

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