file limit numbers: • Each file is ~ 1 k of memory • Don’t allocate more than 10% of memory to files • So, approximately 100 file descriptors for every MB of RAM Your OS + Load
User Limit # vi /etc/security/limits.conf with yourusername soft no file 10000 yourusername hard no file 30000 Your OS + Load H T T P : / / W W W. C Y B E R C I T I . B I Z / FA Q / L I N U X - U N I X - N G I N X - T O O - M A N Y- O P E N - F I L E S /
T T P S : / / D O C S . N E W R E L I C . C O M / D O C S / A P M / T R A N S A C T I O N S / T R A N S A C T I O N - T R A C E S / T R A N S A C T I O N - T R A C E S