LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-20-2005, 03:52 PM   #1
robeadam
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 (bhcompile@bugs.build.redhat.com) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-47)) #1 Mon Dec 20 18:56:53 EST 2004

Thanks,
Robert
 
Old 06-22-2005, 08:41 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
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.
 
  


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


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