Review your favorite Linux distribution.
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 06-20-2005, 04:52 PM   #1
LQ Newbie
Registered: Jun 2005
Posts: 5

Rep: Reputation: 0
ulimit problems

I'm a newbie so forgive me if there is an obvious answer. I did search this forum and google'd but found no answer.

My problem is with ulimit. My scripts keep dying with the "Too many open files" message. If I increase the number of open files with "ulimit -n 2048", things work well...for a while. When I see the error again, I check the ulimit and it's set back to 1000. So how do I make it stick?

Searching, I found reference to /etc/security/limits.conf
There were no entries there so I added:

* hard nofile 12345

Will this take affect on boot? Will it change back to 1000 later? What caused it to be set to 1000 initially. Any speculation as to why it keeps changing?

[root@rpd-server1 robeadam]# cat /proc/version
Linux version 2.4.21-27.0.1.EL ( (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-47)) #1 Mon Dec 20 18:56:53 EST 2004

Old 06-22-2005, 09:41 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,147

Rep: Reputation: 229Reputation: 229Reputation: 229
That should work by setting in your limits file. Usually it is reset as I think when you run this as a user, its only for that session, like in that terminal you have open, etc.


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
ulimit Serena Linux - Software 6 12-18-2014 12:04 AM
ulimit -t juanbobo Linux - Security 3 06-10-2005 10:43 AM
ulimit woes... SlickWilly Linux - General 5 11-23-2004 04:52 PM
Ulimit -v Help !!!!!!!!!!!!!!!!!!!!!! raees Linux - Software 1 07-04-2004 11:01 AM
ulimit -n evilrico Linux - Distributions 0 03-14-2003 05:23 PM

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

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