Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
URGENT: Too many connections? Details »»
URGENT: Too many connections?
Version: , by X-Fan X-Fan is offline
Developer Last Online: Apr 2005 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 11-25-2002 Last Update: Never Installs: 0
 
No support by the author.

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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-25-2002, 09:51 PM
X-Fan's Avatar
X-Fan X-Fan is offline
 
Join Date: Jan 2002
Location: Adelaide, Australia
Posts: 496
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?!
Reply With Quote
  #3  
Old 11-25-2002, 10:38 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #4  
Old 11-25-2002, 10:48 PM
X-Fan's Avatar
X-Fan X-Fan is offline
 
Join Date: Jan 2002
Location: Adelaide, Australia
Posts: 496
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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,
Attached Files
File Type: (21.3 KB, 8 views)
Reply With Quote
  #5  
Old 11-26-2002, 01:18 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

!!! 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.
Reply With Quote
  #6  
Old 11-26-2002, 01:26 AM
X-Fan's Avatar
X-Fan X-Fan is offline
 
Join Date: Jan 2002
Location: Adelaide, Australia
Posts: 496
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 11-26-2002, 01:37 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 11-26-2002, 02:49 AM
X-Fan's Avatar
X-Fan X-Fan is offline
 
Join Date: Jan 2002
Location: Adelaide, Australia
Posts: 496
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:10 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.04334 seconds
  • Memory Usage 2,287KB
  • Queries Executed 22 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete