[NTLUG:Discuss] How to set process file limit?

Neil Aggarwal neil at JAMMConsulting.com
Thu Mar 4 17:27:29 CST 2004


Hello:

I am getting a message from tomcat running on my
RedHat 9 box that says "Too Many Open Files".

When I do ulimit -aH, I get:

core file size        (blocks, -c) unlimited
data seg size         (kbytes, -d) unlimited
file size             (blocks, -f) unlimited
max locked memory     (kbytes, -l) unlimited
max memory size       (kbytes, -m) unlimited
open files                    (-n) 1024
pipe size          (512 bytes, -p) 8
stack size            (kbytes, -s) unlimited
cpu time             (seconds, -t) unlimited
max user processes            (-u) 7168
virtual memory        (kbytes, -v) unlimited

Reading on the internet, I added this line to
/etc/security/limits.conf:

*	hard	nofile	10240

and rebooted the server.

But, when I login and try the ulimit -aH command again,
I still get 1024 for the open files limit.

Any ideas why this did not work?
What can I do to increase it?

Thanks,
	Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! => http://newsletter.JAMMConsulting.com




More information about the Discuss mailing list