To see what's going on first, run:
show processlist;
and look for the "converting HEAP to MyISAM" message.
SELECT DISTIN
CT pv_user_id, pv_type, pv_page_id FROM mypligg_pageviews GROUP BY pv_type, pv_page_id, pvmysql> SHOW GLOBAL STATUS LIKE 'Created_tmp_tables';
+--------------------+-------+
| Variable_name | Value |
+--------------------+-------+
| Created_tmp_tables | 196 |
+--------------------+-------+
1 row in set (0.01 sec)
mysql> SHOW GLOBAL STATUS LIKE 'Created_tmp_disk_tables';
+-------------------------+-------+
| Variable_name | Value |
+-------------------------+-------+
| Created_tmp_disk_tables | 159 |
+-------------------------+-------+
1 row in set (0.01 sec)
mysql> show variables like 'tmp_table_size';
+----------------+----------+
| Variable_name | Value |
+----------------+----------+
| tmp_table_size | 33554432 |
+----------------+----------+
1 row in set (0.01 sec)
mysql> set tmp_table_size=100000000;
Query OK, 0 rows affected (0.00 sec)
mysql> set max_heap_table_size=100000000;
Query OK, 0 rows affected (0.01 sec)
And now we're golden, CPU back down to normal levels and queries finishing.
Read the rest of this article...To see what's going on first, run:
show processlist;
and look for the "converting HEAP to MyISAM" message.
Recent comments
1 year 11 weeks ago
2 years 3 days ago
2 years 1 week ago
2 years 3 weeks ago
2 years 19 weeks ago
2 years 19 weeks ago
2 years 19 weeks ago
2 years 19 weeks ago
2 years 19 weeks ago
2 years 19 weeks ago