LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

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

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


Greetings,
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.

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

Rep: Reputation: 322Reputation: 322Reputation: 322Reputation: 322
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, 01:14 AM   #3
xmdms
Member
 
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!

JB
 
Old 07-15-2004, 01:57 AM   #4
xmdms
Member
 
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??


Thanks,

JB
 
  


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


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


All times are GMT -5. The time now is 08:56 PM.

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