vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   mysql table lock issues advice on tuning or a fix (https://vborg.vbsupport.ru/showthread.php?t=321153)

helpdesk@purch 12-22-2015 03:51 PM

mysql table lock issues advice on tuning or a fix
 
Hey Guys -

I'm getting the occasional table lock and was hoping for some advice on fine tuning our setup - The database does not seem overloaded and has plenty of cpu/memory

below is the queries that are locking up the table, any suggestions?

/rdsdbbin/mysql/bin/mysqld, Version: 5.6.22-log (MySQL Community Server (GPL)). started with:
Tcp port: 3306 Unix socket: /tmp/mysql.sock
Time Id Command Argument
# Time: 151222 4:06:06
# User@Host: vBulletin[vBulletin] @ [10.210.62.243] Id: 98240505
# Query_time: 718.353914 Lock_time: 417.029493 Rows_sent: 7008 Rows_examined: 31528
use db_name;
SET timestamp=1450757166;
SELECT
user.username, (user.options & 512) AS invisible, user.usergroupid,
session.userid, session.inforum, session.lastactivity, session.badlocation,
IF(user.displaygroupid=0, user.usergroupid, user.displaygroupid) AS displaygroupid, infractiongroupid

FROM vb_session AS session
LEFT JOIN vb_user AS user ON(user.userid = session.userid)

WHERE session.lastactivity > 1450752816

Dave 12-22-2015 04:06 PM

What is your session timeout set at in vBulletin?
Does the vb_session table contain a lot of rows?

helpdesk@purch 12-22-2015 06:39 PM

Session timeout is set at 3600
The vb_session table contains 2065 rows

Dave 12-22-2015 06:47 PM

What storage engine are you using? InnoDB is recommended to be used instead of MyISAM.
Also this may be of interest to you: http://linuxbox.co.uk/vbulletin_performance_tuning.php


All times are GMT. The time now is 08:53 PM.

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.00949 seconds
  • Memory Usage 1,719KB
  • 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
  • (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