How to resolve "Too Many Open Files" error?

If your application, script or command are getting error “Too many open files” then you are hitting max open file limit allowed by Linux. You need to increase open file limit as shown below:

Please open file:

/etc/security/limits.conf

Paste the following text towards the end:

*         hard    nofile      500000
*         soft    nofile      500000
root      hard    nofile      500000
root      soft    nofile      500000

Once you save the file, logout, and log in again. 

This simple change will increase the limit on open files :)

  • resolve, Too Many Open Files, error, security
  • 85 משתמשים שמצאו מאמר זה מועיל
?האם התשובה שקיבלתם הייתה מועילה

מאמרים קשורים

How to buy a VPS package?

if you have decided to buy a VPS package, this can be done at - https://ultahost.com/service-vps...

How to log into McMyAdmin?

If you have selected an OS template with McMyAdmin server control panel for your VPS, make sure...

Are there any setup fees?

There are no setup fees to any plan available on Ultahost.com. You can enjoy our services without...

What are available Operating Systems for VPS?

When purchasing a VPS, it comes with a list of Operating Systems templates, all Linux based,...

How many domains can I host on my VPS server?

We do not limit the number of domains on our VPS packages. You can host unlimited domain names!