Converting HEAP to MyISAM in SHOW PROCESSLIST
2011-08-03 12:24
1246 查看
http://www.mysqlab.net/knowledge/kb/detail/topic/myisam/id/6149
MySQL uses memory-based temporary tables up to the size limit set by the tmp_table_size system variable. If a query needs a temporary table larger than this it will be converted to a disk-based temporary table using the MyISAM storage engine.
GROUP BY queries and ORDER BY queries that can't use an index for the ordering are the most common causes of temporary table creation.
The
Created_tmp_disk_tables
variable shows how many of those have been converted to disk temporary tables:
调2个参数
tmp_table_size和max_heap_table_size ============> converting HEAP to MyISAM
Discussion
The state "converting HEAP to MyISAM" happens when a query that needs a temporary table is converting from an in-memory temporary table to a disk-based temporary table.MySQL uses memory-based temporary tables up to the size limit set by the tmp_table_size system variable. If a query needs a temporary table larger than this it will be converted to a disk-based temporary table using the MyISAM storage engine.
GROUP BY queries and ORDER BY queries that can't use an index for the ordering are the most common causes of temporary table creation.
Solution
You could consider raising the per-session value of tmp_table_size if you have sufficient memory. Use the SHOW GLOBAL STATUS statement to see the value of the Created_tmp_tables variable. It will show the total number of temporary tables that have been created:SHOW GLOBAL STATUS LIKE 'Created_tmp_tables'; +--------------------+-------+ | Variable_name | Value | +--------------------+-------+ | Created_tmp_tables | 13 | +--------------------+-------+
The
Created_tmp_disk_tables
variable shows how many of those have been converted to disk temporary tables:
SHOW GLOBAL STATUS LIKE 'Created_tmp_disk_tables'; +-------------------------+-------+ | Variable_name | Value | +-------------------------+-------+ | Created_tmp_disk_tables | 1 | +-------------------------+-------+
调2个参数
tmp_table_size和max_heap_table_size ============> converting HEAP to MyISAM
相关文章推荐
- Converting HEAP to MyISAM in SHOW PROCESSLIST
- To run dex in process, the Gradle daemon needs a larger heap. It currently has 1024 MB. For faster b
- How to get files to show up in the Process Monitor/Report Repository
- Android Tips 8(To run dex in process, the Gradle daemon needs a larger heap)
- lintcode-easy-Nth to Last Node in List Show result
- MySQL "show users" - how to show/list the users in a MySQL database
- 编译ionic应用时遇到“To run dex in process, the Gradle daemon needs a larger heap.”
- how to show sku in product list page?
- Using SHOW PROCESSLIST and mysqladmin debug Output in Conjunction with SHOW INNODB STATUS
- MySQL command to show list of databases on server
- Unity_ClickToShow_FadeInAndOut
- [转] mysql show processlist命令 详解
- mysql show processlist命令 详解
- 如何获悉mysql的show processlist显示的进程状态
- mysql processlist 提示 Writing to net解决
- mysql show processlist 显示mysql查询进程
- pip安装模块,报 Fatal error in launcher: Unable to create process using '"' 错误
- 启动jupyter&ipython时,报错“Fatal error in launcher: Unable to create process using '"'”
- show processlist 命令详解
- How to display sub-totals in ALV Grid List?