Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: System resource limitation question

by robin (Chaplain)
on Jan 08, 2002 at 00:03 UTC ( [id://136920]=note: print w/replies, xml ) Need Help??


in reply to System resource limitation question

If you want to see how many file handles are being used system-wide, cat /proc/sys/fs/file-nr. The middle number is the one you want, and the third number is the system limit. To increase the limit, you can write a number into /proc/sys/fs/file-max, like this:
echo 8192 > /proc/sys/fs/file-max
If you want the change to be persistent, add that command to /etc/rc.d/rc.local so it'll be run at startup.

And yes, open sockets count towards the total. It's the number of file handles that are limited, rather than the number of actual files that can be opened at once.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://136920]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2024-03-28 10:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found