我们的 MySQL 服务器间歇性地出现了一些问题。它不断地同时抛出大量这些查询(因此将它们堆叠在我的进程列表中)。我们正在为 Grails 应用程序使用 MyISAM 数据库和通过 Glassfish v3 进行的连接池。
db_user myhost:35143 数据库查询 39
converting HEAP to MyISAM /* mysql-connector-java-5.1.7 ( Revision: ) */SHOW VARIABLES WHERE Variable_name ='language' OR Variable_name = 'net_write_timeout' OR Variable_name = 'interactive_timeout' OR Variable_name = 'wait_timeout' OR Variable_name = 'character_set_client' OR Variable_name = 'character_set_connection' OR Variable_name = 'character_set' OR Variable_name = 'character_set_server' OR Variable_name = 'tx_isolation' OR Variable_name = 'transaction_isolation' OR Variable_name = 'character_set_results' OR Variable_name = 'timezone' OR Variable_name = 'time_zone' OR Variable_name = 'system_time_zone' OR Variable_name = 'lower_case_table_names' OR Variable_name = 'max_allowed_packet' OR Variable_name = 'net_buffer_length' OR Variable_name = 'sql_mode' OR Variable_name = 'query_cache_type' OR Variable_name = 'query_cache_size' OR Variable_name = 'init_connect'
我们推测有通过 GORM(grails ORM)创建的临时表导致了这些查询。为什么我的 mysql 服务器上不断出现 Converting HEAP to MyISAM?