ineedhelp
Well-known member
My site has been running slow for somedays and my host has said the queries below is causing the slowness. Can someone tell me how to fix this asap and what could be causing it.
Thanks.
The server is slow as MySQL is being absolutely hammered by queries, please see those queries below:
[root@barfilounge-com ~]# mysqladmin -u admin -p`cat /etc/psa/.psa.shadow` processlist
+-------+-------------+-----------+------------------+----------------+------+--------------------+------------------------------------------------------------------------------------------------------+
| Id | User | Host | db | Command | Time | State | Info |
+-------+-------------+-----------+------------------+----------------+------+--------------------+------------------------------------------------------------------------------------------------------+
| 86449 | DELAYED | localhost | ubar_xxxxxx_0001 | Delayed insert | 20 | Waiting for INSERT | |
| 86701 | barfilounge | localhost | ubar_xxxxxx_0001 | Execute | 6 | Sorting result | SELECT n.*, t.*, p.* FROM xf_post p LEFT JOIN xf_thread t ON t.thread_id = p.thread_id LEFT JOIN xf_ |
| 86726 | barfilounge | localhost | ubar_xxxxxx_0001 | Execute | 7 | Sorting result | SELECT n.*, t.*, p.* FROM xf_post p LEFT JOIN xf_thread t ON t.thread_id = p.thread_id LEFT JOIN xf_ |
| 86740 | DELAYED | localhost | ubar_xxxxxx_0001 | Delayed insert | 72 | Waiting for INSERT | |
| 86765 | barfilounge | localhost | ubar_xxxxxx_0001 | Execute | 3 | Sorting result | SELECT n.*, t.*, p.* FROM xf_post p LEFT JOIN xf_thread t ON t.thread_id = p.thread_id LEFT JOIN xf_ |
| 86793 | barfilounge | localhost | ubar_xxxxxx_0001 | Execute | 7 | Sorting result | SELECT n.*, t.*, p.* FROM xf_post p LEFT JOIN xf_thread t ON t.thread_id = p.thread_id LEFT JOIN xf_ |
| 86820 | barfilounge | localhost | ubar_xxxxxx_0001 | Execute | 4 | Sorting result | SELECT n.*, t.*, p.* FROM xf_post p LEFT JOIN xf_thread t ON t.thread_id = p.thread_id LEFT JOIN xf_ |
| 86853 | barfilounge | localhost | ubar_xxxxxx_0001 | Execute | 7 | Sorting result | SELECT n.*, t.*, p.* FROM xf_post p LEFT JOIN xf_thread t ON t.thread_id = p.thread_id LEFT JOIN xf_ |
| 86882 | barfilounge | localhost | ubar_xxxxxx_0001 | Execute | 7 | Sorting result | SELECT n.*, t.*, p.* FROM xf_post p LEFT JOIN xf_thread t ON t.thread_id = p.thread_id LEFT JOIN xf_ |
| 86885 | admin | localhost | | Query | 0 | | show processlist |
+-------+-------------+-----------+------------------+----------------+------+--------------------+------------------------------------------------------------------------------------------------------+
Thanks.