vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Slow queries (https://vborg.vbsupport.ru/showthread.php?t=273094)

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?

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

Quote:

Originally Posted by blind-eddie (Post 2263096)
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

Quote:

Originally Posted by blind-eddie (Post 2263096)
Is there a way to stop this from happening?

Ban him.


All times are GMT. The time now is 06:34 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00970 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete