PDA

View Full Version : Slow queries


blind-eddie
10-31-2011, 05:11 AM
Today I recieved 525 database error emails, all from one user (Regular User) & all were the same.

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:

# 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,1 33,134,368,366,521,527,199,200,201,1046,203,204,20 5,206,1072,208,2128,210,211,209,827,217,219,220,22 9,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,29 2,293,559,562,571,312,313,314,315,513,576,575,577, 580,678,713,716,722,718,719,720,721,849,850,816,86 5,866,867,869,1062,1048,1054,2158,2160,2156,1264,1 265,1267,1268,1913,2145,2136,2137,2138,2139,2140,2 141,2142,2143,2144)

I had 8 of the following:

# 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','forum cache','usergroupcache','stylecache','languagecach e','products','pluginlist','cron','profilefield',' loadcache','noticecache','smiliecache','bbcodecach e')

I had 2 of the following:

# 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','forum cache','usergroupcache','stylecache','languagecach e','products','pluginlist','cron','profilefield',' loadcache','noticecache','smiliecache','bbcodecach e')

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 1320064331 at 1320064331 ---------------

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?

nhawk
10-31-2011, 03:55 PM
If you're on a dedicated server, check out mod_evasive for apache.

HMBeaty
10-31-2011, 03:58 PM
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
He admires himself lol :eek:

Paul M
10-31-2011, 06:02 PM
Is there a way to stop this from happening?
Ban him.