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

Cameron, Thomas Thomas.Cameron at bankofamerica.com
Fri Mar 5 11:28:27 CST 2004


> -----Original Message-----
> From: Chris Cox [mailto:cjcox at acm.org]
> Sent: Friday, March 05, 2004 11:11 AM
> To: NTLUG Discussion List
> Subject: Re: [NTLUG:Discuss] How to set process file limit?
> 
> 
> Neil Aggarwal wrote:
> > 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:
> > 
> ...
> > open files                    (-n) 1024
> ...
> > 
> > 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.
> 
> Check your pam.d files and make sure the pam_limits
> modules is used for the login (and other services where
> needed).
> 
> > 
> > Any ideas why this did not work?
> 
> You're on the right path... it worked fine here on SUSE 8.2
> (with no pam changes)
> 
> > What can I do to increase it?
> > 
> > Thanks,
> > 	Neil


>From the bash(1) man page, in the ulimit section:

-n     The maximum number of open file descriptors (most systems
       do not allow this value to be set)

You might be stuck.  :-(

--
Thomas Cameron, RHCE, CNE, MCSE, MCT
Assistant Vice President
Linux Design and Engineering
Bank of America
(972) 997-9641

The opinions expressed in this message are mine alone and do not necessarily reflect the opinions of my employer, Bank of America. 



More information about the Discuss mailing list