vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   URGENT: Too many connections? (https://vborg.vbsupport.ru/showthread.php?t=46111)

X-Fan 11-25-2002 09:49 PM

URGENT: Too many connections?
 
G'day all,

I'm hoping someone can help me with this, as it's been a recurring problem recently that's been causing my site to become *very* unstable.

Basically, its this error:

Warning: Too many connections in /home/virtual/site1/fst/var/www/html/xfan/forums/admin/db_mysql.php on line 40

Warning: MySQL Connection Failed: Too many connections in /home/virtual/site1/fst/var/www/html/xfan/forums/admin/db_mysql.php on line 40

And I'm wondering what it is that causes that, and what measures can be taken to prevent it happening?

Thanks in advance!

X-Fan 11-25-2002 09:51 PM

Just as an addendum, today I discovered a process that had been running for 55 minutes that was chewing up over 90% of my server's CPU! That's what was causing the "too many connections" error, but what process would chew up over 90% of the CPU state?!

Erwin 11-25-2002 10:38 PM

Quote:

Too many connections in /home/virtual/site1/fst/var/www/html/xfan/forums/admin/db_mysql.php on line 40
If you're on a shared server, try turning persistent connections to OFF in your admin/config.php

If it's a dedicated server, just increase your maximum db connections in php.ini to 100 or more.

Looks like your site is becoming busier. :)

As for the process, could be anything. Make sure you're not being hacked. Check your hacks - do you have anything that may form a query loop?

X-Fan 11-25-2002 10:48 PM

1 Attachment(s)
Quote:

Originally posted by Erwin
If you're on a shared server, try turning persistent connections to OFF in your admin/config.php
Already did that weeks ago.

Quote:

Looks like your site is becoming busier. :)
Yeah, but it'll soon die off if I can't resolve the problem, because people are getting fed up with the site crashing all the time (as am I!).

Quote:

As for the process, could be anything. Make sure you're not being hacked. Check your hacks - do you have anything that may form a query loop?
I wouldn't have a clue what to look for, Erwin. I've attached a list of the hacks that I've installed - could you take a look and see if anything stands out as a potential problem? I'm looking to upgrade to 2.2.9 this week, and would appreciate knowing if there are any hacks I shouldn't be using because they're too resource hungry!

Thanks mate,

Erwin 11-26-2002 01:18 AM

!!! You have LOTS of hacks in that list!!! Some of them I am not familiar with. When I have time I will look at them. :) What server are you on? Shared or dedicated? If it's shared, it's time to go dedicated.

X-Fan 11-26-2002 01:26 AM

Most of them are very small hacks which makes the list seem long :)

As for what server my site is on, it's a dedicated RackShack server.

Erwin 11-26-2002 01:37 AM

Mmm... that's weird. I suggest you post in the "Server Config" forum in vB.com and ask eva2000 to optimize the server for you. :)

X-Fan 11-26-2002 02:49 AM

Well on further investigation it looks like that the process problem I mentioned above is related to the httpdmon bug that affects ensim's WEBppliance.

http://forum.rackshack.net/showthrea...threadid=13753

I'll get the fix for that installed and see if that resolves it.


All times are GMT. The time now is 09:19 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.01001 seconds
  • Memory Usage 1,725KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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