Thread: Major Additions - [DBTech] vBActivity & Awards v3 (vB4)
View Single Post
  #75  
Old 03-02-2010, 10:41 PM
Supramania's Avatar
Supramania Supramania is offline
 
Join Date: Mar 2006
Location: Woodstock, GA
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I just tested again. This is in a very slow time of the day with only 100 +/- connections to the site.

Prior to enabling mod:


0.47 0.43 0.38 | 112 Users Online (74 members and 38 guests)

Immediately after enabling mod:

1.18 0.63 0.45 | 118 Users Online (78 members and 40 guests)

a few minutes after enabling mod:

2.12 1.36 0.80 | 113 Users Online (72 members and 41 guests)

This trend will continue until server load goes out of control and connections start getting throttled.

After mod is disabled for a few minutes:

0.57 0.81 0.76 | 111 Users Online (70 members and 41 guests)

My slow query threshold is set to 10 seconds. The mod is pumping queries that take 10 seconds or more into the queue every 2 seconds, this causes MySQL to backlog severely until the entire site runs like molasses. Eventually the system starts rejecting connections due to high processor load because MySQL is running away with all 4 processors.

Attached find the slow query log after just a couple of minutes of running with the mod enabled.

It pumps an entry like the following into the log about every 2 seconds:

Code:
# Time: 100302 18:29:40
# User@Host: databasename[databasename] @ localhost []
# Query_time: 13.313781  Lock_time: 0.000048 Rows_sent: 4  Rows_examined: 368738
SET timestamp=1267576180;
SELECT SUM(points) AS newpoints, userid
	FROM dbtech_vbactivity_pointslog
	WHERE userid IN(
		SELECT userid
		FROM post AS post
		WHERE post.postid IN (0967161,967167,967177,967178,967194,967203,967204,967232,967238,967243)
	)
		AND points > 0
	GROUP BY userid;
Attached Files
File Type: txt mysql_slow_query.log.txt (6.1 KB, 9 views)
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01116 seconds
  • Memory Usage 1,786KB
  • Queries Executed 12 (?)
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
  • (1)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_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete