LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   File Descriptors - How to raise the limit? (https://www.linuxquestions.org/questions/linux-general-1/file-descriptors-how-to-raise-the-limit-205081/)

xmdms 07-14-2004 05:06 PM

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

btmiller 07-14-2004 07:03 PM

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.

xmdms 07-15-2004 12:14 AM

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

xmdms 07-15-2004 12:57 AM

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


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