MySQL Forums
Forum List  »  General

Re: open files usage- consumes my entire disk
Posted by: Paul Homlish
Date: July 26, 2016 05:50AM

Thanks Rick. 90% disk space, not IO

I stupidly already had it rebooting every morning, so the dump shown below is when my /var is at 4% usage. I turned off restarting. How would I drill down on the open files to see why/who is not closing them?

mysql> SHOW GLOBAL STATUS LIKE '%file%';
+----------------------------------------+-------+
| Variable_name | Value |
+----------------------------------------+-------+
| Com_show_profile | 0 |
| Com_show_profiles | 0 |
| Created_tmp_files | 6 |
| Innodb_num_open_files | 214 |
| Open_files | 215 |
| Opened_files | 1593 |
| Performance_schema_file_classes_lost | 0 |
| Performance_schema_file_handles_lost | 0 |
| Performance_schema_file_instances_lost | 0 |
+----------------------------------------+-------+
9 rows in set (0.01 sec)

mysql> SHOW GLOBAL STATUS LIKE '%open%';
+----------------------------+----------+
| Variable_name | Value |
+----------------------------+----------+
| Com_ha_open | 0 |
| Com_show_open_tables | 0 |
| Innodb_num_open_files | 214 |
| Open_files | 221 |
| Open_streams | 0 |
| Open_table_definitions | 159 |
| Open_tables | 408 |
| Opened_files | 1605 |
| Opened_table_definitions | 283 |
| Opened_tables | 1179 |
| Slave_open_temp_tables | 0 |
| Table_open_cache_hits | 29365926 |
| Table_open_cache_misses | 1179 |
| Table_open_cache_overflows | 353 |
+----------------------------+----------+
14 rows in set (0.00 sec)

mysql> SHOW VARIABLES LIKE '%file%';
+---------------------------------------+-------------------------------+
| Variable_name | Value |
+---------------------------------------+-------------------------------+
| character_set_filesystem | binary |
| core_file | OFF |
| ft_stopword_file | (built-in) |
| general_log_file | /var/log/mysql/mysql.log |
| init_file | |
| innodb_buffer_pool_filename | ib_buffer_pool |
| innodb_data_file_path | ibdata1:12M:autoextend |
| innodb_disable_sort_file_cache | OFF |
| innodb_file_format | Barracuda |
| innodb_file_format_check | ON |
| innodb_file_format_max | Barracuda |
| innodb_file_per_table | ON |
| innodb_log_file_size | 50331648 |
| innodb_log_files_in_group | 2 |
| innodb_open_files | 431 |
| innodb_temp_data_file_path | ibtmp1:12M:autoextend |
| keep_files_on_create | OFF |
| large_files_support | ON |
| local_infile | ON |
| lower_case_file_system | OFF |
| myisam_max_sort_file_size | 9223372036853727232 |
| open_files_limit | 1024 |
| performance_schema_max_file_classes | 80 |
| performance_schema_max_file_handles | 32768 |
| performance_schema_max_file_instances | -1 |
| pid_file | /var/run/mysqld/mysqld.pid |
| relay_log_info_file | relay-log.info |
| secure_file_priv | /var/lib/mysql-files/ |
| slow_query_log_file | /var/log/mysql/mysql-slow.log |
+---------------------------------------+-------------------------------+
29 rows in set (0.05 sec)

mysql> SHOW VARIABLES LIKE '%open%';
+----------------------------+-------+
| Variable_name | Value |
+----------------------------+-------+
| have_openssl | YES |
| innodb_open_files | 431 |
| open_files_limit | 1024 |
| table_open_cache | 431 |
| table_open_cache_instances | 16 |
+----------------------------+-------+
5 rows in set (0.00 sec)

Options: ReplyQuote


Subject
Written By
Posted
Re: open files usage- consumes my entire disk
July 26, 2016 05:50AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.