All of a sudden I'm getting:
Warning: mysql "upgrade_"
Not all the data was backed up into /var/lib/psa/dumps/clients/artitec/domains/xxxxx/databases/upgrade__1 successfully. mysqldump: Got error: 23: Out of resources when opening file './upgrade_/art_zoo_category_item.MYD' (Errcode: 24 - Too many open files) when using LOCK TABLES
AFAIK nothing has changed lately to this database.
It happened the last 3 back-ups. All was fine the days before.
2 weeks ago this site was on another server, so I don't care much about that change.
I want to focus on how to get this permanently resolved by increasing the amount of file handles.
I tested the amount of files I'm able to open and that's 1024
On the previous server this was
I expected a quick fix after I found this page:
Error: 'Out of resources when opening file '/tmp/#sql_390d_2.MYD' (Errcode: 24 - Too many open files)' when trying to dump tablespaces
Alas, no....
At first I wanted to do clean and elegant by adding a new file named "open_files.cnf" into
/etc/mysql/mysql.conf.d
But when that didn't work I directly edited the mysqld.cnf that was there.
After restarting mysql that limit stayed 1024.
It's an Ubuntu 16.04 TLS with Plesk Onyx 17.0.17
Is there maybe some other setting that is stopping it from increasing the filehandles??
This one is a pre-installed Plesk from a big German provider.
I think that the database that's causing this error is superfluous, so maybe getting rid of it is a solution, but on the other hand it intrigues me why the amount of files doesn't change and is so much lower than that of the other server.
Warning: mysql "upgrade_"
Not all the data was backed up into /var/lib/psa/dumps/clients/artitec/domains/xxxxx/databases/upgrade__1 successfully. mysqldump: Got error: 23: Out of resources when opening file './upgrade_/art_zoo_category_item.MYD' (Errcode: 24 - Too many open files) when using LOCK TABLES
AFAIK nothing has changed lately to this database.
It happened the last 3 back-ups. All was fine the days before.
2 weeks ago this site was on another server, so I don't care much about that change.
I want to focus on how to get this permanently resolved by increasing the amount of file handles.
I tested the amount of files I'm able to open and that's 1024
Code:
mysql> SHOW VARIABLES LIKE 'open%';
+------------------+-------+
| Variable_name | Value |
+------------------+-------+
| open_files_limit | 1024 |
+------------------+-------+
1 row in set (0.00 sec)
On the previous server this was
Code:
mysql> SHOW VARIABLES LIKE 'open%';
+------------------+-------+
| Variable_name | Value |
+------------------+-------+
| open_files_limit | 2458 |
+------------------+-------+
1 row in set (0.00 sec)
I expected a quick fix after I found this page:
Error: 'Out of resources when opening file '/tmp/#sql_390d_2.MYD' (Errcode: 24 - Too many open files)' when trying to dump tablespaces
Alas, no....
At first I wanted to do clean and elegant by adding a new file named "open_files.cnf" into
/etc/mysql/mysql.conf.d
But when that didn't work I directly edited the mysqld.cnf that was there.
After restarting mysql that limit stayed 1024.
It's an Ubuntu 16.04 TLS with Plesk Onyx 17.0.17
Is there maybe some other setting that is stopping it from increasing the filehandles??
This one is a pre-installed Plesk from a big German provider.
I think that the database that's causing this error is superfluous, so maybe getting rid of it is a solution, but on the other hand it intrigues me why the amount of files doesn't change and is so much lower than that of the other server.
Last edited: