Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  How-Tos  >  How to Deal with “Too Many Open Files” Error?
Top Scroll

How to Deal with “Too Many Open Files” Error?

 2 min

Is your script, application, or command getting an error as “Too many open files”? Then you have reached the max open file limit allowed by Linux. For resolving this issue, you need to increase the open file limit as shown below:

Open the below file:


Paste the below text towards the end:

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

After you save the file, logout, and login again.

With this simple change, the limit on open files will get increased.

For our Knowledge Base visitors only
Get 10% OFF on Hosting
Special Offer!
Claim the discount before it’s too late. Use the coupon code:
Note: Copy the coupon code and apply it on checkout.