vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Too many mySQL connections to server.. they shut me off! (https://vborg.vbsupport.ru/showthread.php?t=51372)

tpearl5 04-09-2003 03:37 AM

Too many mySQL connections to server.. they shut me off!
 
I'm going to upgrade to a dedicated server soon. The problem is that they said my site was using over 600 connections and 40% of the CPU that my site was on!! They mentioned that there could've been SQL queries that were being opened but not closed.

Unfortunately I cannot show you the site right now because it's been taken offline. Hopefully it'll be back up tomorrow.

It's normally at http://board.midibuddy.net

What can be causing such a heavy server load?

Tigga 04-09-2003 03:43 AM

Lots of things could cause high server loads like that... How many users do you have online at normal and peak times? Do you have Teck's microstats hack installed to see if you have a high number of queries on any of your pages?

tpearl5 04-09-2003 04:53 AM

There's about 100 users online at average. 150 at the most. around 6000 unique a day at the moment. Yeh, I have teck's microstats hack installed. I have a lot of hacks installed, so I'm sure this is part of it. (feature store, arcade, vB portal, and numerous other small things ) But what would cause a SQL connection to be opened but not closed?

Erwin 04-09-2003 04:56 AM

Go to your admin/config.php

Find:

$usepconnect =

Make sure it is

$usepconnect = 0;

Also, vBPortal is well-known for running up server loads - if you turn debug on in your admin/config.php, then add ?explain=1 to the end of your URL for your homepage, you can see how many queries it creates. If you stop using vBPortal, you will find that the server loads will improve dramatically.

tpearl5 04-09-2003 05:14 AM

Quote:

Today at 01:56 AM Erwin said this in Post #4
Go to your admin/config.php

Find:

$usepconnect =

Make sure it is

$usepconnect = 0;

Ack, it was set to 1. I'm guessing that would make a big difference.

Are there any other 'home page' hacks that look exactly like vb portal?

Erwin 04-09-2003 05:31 AM

Yes, setting it to one would cause your max connections to "max out" unless your server is set up to accommodate it.

Try vBHome Lite, which is very query-efficient.


All times are GMT. The time now is 10:27 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.01357 seconds
  • Memory Usage 1,720KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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