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 |
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.
|
All times are GMT -5. The time now is 02:09 PM. |