Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-14-2004, 05:06 PM   #1
Registered: Oct 2003
Posts: 134

Rep: Reputation: 15
File Descriptors - How to raise the limit?

I was looking into the "Errno:24" (Too many open files) today and discovered that my "open files" setting was set at 1024. The Linux 1024 default setting seems somewhat reasonable. And we didn't notice this until our warehouse inventory grew to a fairly sizeable chunk.

The command that I used to displayed the settings is "ulimit -a"

Does anyone here know how I can change this setting "open files" to a larger number?? If I do this, will this effect the system at the OS level and if I should also look into other file settings as well?

Please let me know since I'm still a newbie to Linux.

Thank you in advance.

Old 07-14-2004, 07:03 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
ulimit -n 2048 will give you a limit of 2048. You'll need to be root to do this, so any processes that need their limits raised should start out as superuser, set the resource limit, and then drop priviliges to whatever they were before. There may be a more elegant way, but this should work.
Old 07-15-2004, 12:14 AM   #3
Registered: Oct 2003
Posts: 134

Original Poster
Rep: Reputation: 15
btmiller, thanks for your response. I thought if I change the filedescriptor, I would have to compile the Squid? Do I need to do anything with the Squid? What's SQUID? Btw, I'm currently running RH Enterprise version 2.3 -

Please let me know.

Again, thank you!

Old 07-15-2004, 12:57 AM   #4
Registered: Oct 2003
Posts: 134

Original Poster
Rep: Reputation: 15
This is what I did "ulimit -n 2048", without the quotes of course.

How can I make this setting to stick if I had to bounce the server or some sort??




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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Increasing File Descriptors Geoffrey_Firmin Slackware 5 04-21-2008 09:48 AM
unlimit: descriptors: Can't remove limit petero Programming 8 06-02-2005 02:36 PM
file descriptors node047 Linux - Newbie 1 03-29-2005 05:47 AM
unix file descriptors versus c FILE pointers nodger Programming 9 11-25-2004 07:02 AM
Poll with nonblocking file descriptors bstark Programming 1 11-03-2004 08:27 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:36 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