LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 05: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, 07:03 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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
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, 12: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:39 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration