Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 10-31-2011, 03:55 PM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you're on a dedicated server, check out mod_evasive for apache.
Reply With Quote
  #3  
Old 10-31-2011, 03:58 PM
HMBeaty's Avatar
HMBeaty HMBeaty is offline
 
Join Date: Sep 2005
Posts: 4,141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by blind-eddie View Post
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
Reply With Quote
  #4  
Old 10-31-2011, 06:02 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by blind-eddie View Post
Is there a way to stop this from happening?
Ban him.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:03 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06051 seconds
  • Memory Usage 2,191KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete