• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue errno: 24 "Too many open files"

SalvadorS

Regular Pleskian
Hello,

When I try to update the stats of the server manually I found a lot of errors like this:

statistics_collector[26678]: Failed to process database 'wordpress_b' from domain 'xxx.org': MySQL error 1018: Can't read dir of './wordpress_b/' (errno: 24 "Too many open files") executing query: SHOW TABLE STATUS FROM `wordpress_b`

I search in KB plex and found this:

https://kb.plesk.com/en/128643

I check what is the default number of limit open files:

mysqladmin -uadmin -p`cat /etc/psa/.psa.shadow` variables |grep -i open

| open_files_limit | 1024

I see the default is 1024, as the rest of the servers. My question is:

Can I know which domain/s are open the files? or files per domain? In order to check if the problem is with one particular domain?

As the server is with a few domains it is strange for me...

Thank you
 
Hi SalvadorS,


Can I know which domain/s are open the files? or files per domain? In order to check if the problem is with one particular domain?

To view the "open files for mysql - server" on Debian/Ubuntu based systems for example, you can use the command:

lsof | grep mysqld


Btw., there is absolutely nothing wrong to increase the ( low ) standard of 1024 open files. This limit is reached quite quickly, when you have several domains with several databases, which you will see, when you inspect the open files. ;)
 
Hi SalvadorS,

the limits should help against possible overusage and is not meant to be increased to a number, which could definetly harm your system, or which could bring your server on it's knees. ;)
Consider to double the standard setting and inspect your log - files regulary, to see if that fits your needs. If it doesn't, double it again... :)
 
Back
Top