Re: Monitoring large resultsets
>For example, a lot of the queries I see in the log are select count(id) which return only 1 int row but take 6s when the server is busy.
We don't know how did you process slow query log, try this:
mysqldumpslow -s t -t 5 /path/to/slow_query_log
Provide use with EXPLAIN SELECT for slow queries and SHOW CREATE TABLE info and wrap out it inside [ CODE ] .... [/ CODE ] without spaces inside brackets[].
>I suspect some queries are retrieving huges resultsets. Cache is pruned because it cannot hold results of that size. Php holds the results array in memory.
To help find how much memory is allocated to per-thread/global buffers and see how much data is sent/received over the time etc..
Provide us output of:
SHOW GLOBAL VARIABLES;
SHOW GLOBAL STATUS;
Subject
Views
Written By
Posted
2203
July 10, 2012 10:26PM
1202
July 11, 2012 02:01AM
1010
July 12, 2012 12:22AM
Re: Monitoring large resultsets
975
July 12, 2012 02:19AM
1100
July 12, 2012 03:06AM
1026
July 12, 2012 03:37AM
1024
July 12, 2012 03:51AM
1018
July 12, 2012 04:13AM
1001
July 12, 2012 05:35AM
1069
July 12, 2012 05:49AM
995
July 12, 2012 06:05AM
1209
July 12, 2012 07:02AM
975
July 12, 2012 04:41PM
1026
July 13, 2012 07:50PM
1016
July 14, 2012 02:43AM
979
July 12, 2012 08:13AM
988
July 12, 2012 08:55AM
1060
July 12, 2012 12:12PM
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.