vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   MySQL Query Timeout? (https://vborg.vbsupport.ru/showthread.php?t=216054)

DragonBlade 06-13-2009 04:58 AM

MySQL Query Timeout?
 
Sometimes, there's a query that just "hangs" in the mysqld on my server, and because it's in a state of "Sending Data" it's preventing UPDATES and INSERTS to the tables it's selecting from. When this is the thread and/or the post table, it sometimes causes double-posts for some reason. When it's the session table, the forum lags for EVERYONE (of course, because the forum has to send data to the session table for each page load).

Now, I've been searching quite unsuccessfully for a way to set a "Query Timeout" value, that will basically destroy a query based on the condition it's a READING query (i.e., not UPDATE or INSERT or DELETE, etc.--only SELECT), and if it's loading for a long period of time.

I've been thinking about using mkill, but I can't find documentation of any user's experience with it, so I don't know if it's trustworthy or not.

Could someone give advice on mkill there, or if not, direct me to something that can achieve what I want?


All times are GMT. The time now is 03:37 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.00956 seconds
  • Memory Usage 1,705KB
  • 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
  • (1)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