lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin A. Burton" <>
Subject Increasing Linux kernel open file limits.
Date Fri, 09 Jul 2004 06:24:25 GMT
Don't know if anyone knew this:

> The kernel allocates filehandles dynamically up to a limit specified 
> by file-max.
> The value in file-max denotes the maximum number of file- handles that 
> the Linux kernel will allocate. When you get lots of error messages 
> about running out of file handles, you might want to increase this limit.
> The three values in file-nr denote the number of allocated file 
> handles, the number of used file handles and the maximum number of 
> file handles. When the allocated filehandles come close to the 
> maximum, but the number of actually used ones is far behind, you've 
> encountered a peak in your filehandle usage and you don't need to 
> increase the maximum.
So while root you can allocate as many file handles without any limits 
enforced by glibc you still have to fight against the kernel

Just doing a echo 1000000 > /proc/sys/fs/file-max works fine.

Then I can keep track of my file limit by doing a

cat /proc/sys/fs/file-nr

At least this works on 2.6.x...

Think this is going to save me a lot of headache!



Please reply using PGP.    
    NewsMonster -
Kevin A. Burton, Location - San Francisco, CA, Cell - 415.595.9965
       AIM/YIM - sfburtonator,  Web -
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412
  IRC - #infoanarchy | #p2p-hackers | #newsmonster

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message