blind-eddie |
10-31-2011 05:11 AM |
Slow queries
Today I recieved 525 database error emails, all from one user (Regular User) & all were the same.
Code:
Database error in vBulletin :
mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: User xxxxx already has more than 'max_user_connections' active connections
/home1/xxxxx/public_html/outerzone/forum/includes/class_core.php on line 311
MySQL Error :
Error Number :
Request Date : Sunday, October 30th 2011 @ 01:55:39 PM
Error Date : Sunday, October 30th 2011 @ 01:56:26 PM
Script : http://outerzone.us/forum/member.php?u=156
Referrer :
IP Address : 68.105.202.150
Username :
Classname : vB_Database
MySQL Version :
I checked my mysql_slow_queries for today and had many.
I had 12 of the following:
Code:
# Sun Oct 30 13:56:22 2011
# Query_time: 1.801054 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
SELECT title, template
FROM template
WHERE templateid IN (870,218,186,187,189,196,195,92,94,96,98,132,131,133,134,368,366,521,527,199,200,201,1046,203,204,205,206,1072,208,2128,210,211,209,827,217,219,220,229,223,224,225,226,228,198,216,221,230,232,231,1266,658,418,712,912,913,67,66,68,63,62,339,655,291,292,293,559,562,571,312,313,314,315,513,576,575,577,580,678,713,716,722,718,719,720,721,849,850,816,865,866,867,869,1062,1048,1054,2158,2160,2156,1264,1265,1267,1268,1913,2145,2136,2137,2138,2139,2140,2141,2142,2143,2144)
I had 8 of the following:
Code:
# Sun Oct 30 13:55:57 2011
# Query_time: 10.118077 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
SELECT *
FROM datastore
WHERE title IN ('','options','bitfields','attachmentcache','forumcache','usergroupcache','stylecache','languagecache','products','pluginlist','cron','profilefield','loadcache','noticecache','smiliecache','bbcodecache')
I had 2 of the following:
Code:
# Sun Oct 30 13:55:34 2011
# Query_time: 2.421559 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
use HIDDEN;
SELECT *
FROM datastore
WHERE title IN ('','options','bitfields','attachmentcache','forumcache','usergroupcache','stylecache','languagecache','products','pluginlist','cron','profilefield','loadcache','noticecache','smiliecache','bbcodecache')
What would cause this member to so many "max_user_connections' active connections"?
And would someone help me understand the slow queries?
Thanks, blind
--------------- Added [DATE]1320064331[/DATE] at [TIME]1320064331[/TIME] ---------------
Well, I found out how he was able to get so many max_user_connections.
In his pm to me he stated he held F-5 (Reloads page) down for some time to increase page views on his profile page.... Go figure
Is there a way to stop this from happening?
|