Vahid Ghafarpour's Blog

نكات جالب از نظر وحيد غفارپور!

Tuesday, August 14, 2007

/bin/bash: Too many open files in system

I try to use ulimit and sysctl
you can use ulimit -a to see examples or find manpage in man bash

you can set ulimit -n 2048 (for example) to increase it but it should run by root.

if you like to change for all users you can set in /etc/security/limits.conf
for example:
* soft nofile 4096

number of open files per process can be increased only by root and users can decrease it

you can find good information in this page

http://bcr2.uwaterloo.ca/~brecht/servers/openfiles.html

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home