How can I increase the number of sockets and files that I can simultaneously have open under Linux?

Nathan Meyers

Linux 2.2.x kernels allow control of the maximum number of open files through the /proc/sys/fs/file-max pseudo-file. Read that file to see the current limits; write a new value to it to change the limit. For example:

  cat /proc/sys/fs/file-max
  echo 16384 >/proc/sys/fs/file-max

You may also find it useful to manipulate the kernel inode limit. This is controlled, using the same techniques, through the /proc/sys/fs/inode-max pseudo-file.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact