Thread: Slow queries
View Single Post
  #1  
Old 10-31-2011, 05:11 AM
blind-eddie's Avatar
blind-eddie blind-eddie is offline
 
Join Date: Apr 2006
Location: Michigan
Posts: 2,310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01110 seconds
  • Memory Usage 1,775KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete