Astahost.com   Mar 22, 2010
Open Discussion & Free Web Hosting > Astahost > Hosted Members Support
Pages: 1, 2

Mysql Error Never Seen On My Site Before (too Many Connections).

free web hosting
Open Discussion & Free Web Hosting > Astahost > Hosted Members Support

Mysql Error Never Seen On My Site Before (too Many Connections).

Quatrux
QUOTE(pyost @ Jul 29 2006, 09:26 PM) *

Nope, you can use only those that are predefined in the AdSense control panel.


As a matter of fact I saw Google ads which looked a bit customized, I don't know how they did it, but I think they just added javascript, but maybe this is special ads of somekind, they really pointed to google adsense links, can't remember the site, so maybe it is possible, you always can email google adsense team, but I don't know what they could answer, it is better to ask if it is possible and not if I can, I think biggrin.gif

Comment/Reply (w/o sign-up)

vujsa
QUOTE(cyborgxxi @ Jul 29 2006, 09:04 AM) *
I had this problem like a thousand times on my website before. I mean, I thought it would be some sort of an uptime/downtime problem but I have no idea what the heck is going on!!

Please pardon me if I'm being very explosive but when it last happened and I posted a problematic thread/post on the hosted members' support page, I don't believe I got any help on it.

I saw other people's posts about the same thing / incident but I don't believe they got any help either.

What's going on?

The reason you received no help on the matter is because by the time someone noticed the post, the problem was gone. SO in order to reply to your particular post, "Please wait and do not refresh your website over and over and see how things are in about an hour if the problem hasn't already be resolved."

We all share the same MySQL server. The too many connections refers to everyones connections usually. While there is a cap on the number of connections each website may have at once, the entire server also has a cap which is not as large as all of the individual accounts put together so if 10% or more of the websites are at or near their maximum, then the server could be overwhelmed. I'm not sure what the exact figures are for these settings but this is usually what happens. This usually clears up in a few minutes unless we get a few impatient people trying to get the pages to load. Now not only did you have too many connections on the server to begin with, everybody is trying to refresh the error page to get the webpage to load correctly. Few people realize that by repeatedly trying to get the page to load they are actually making the problem worse. Most database connections last less than a secondso in order to have too many connections, there has to be a lot of connection requests all at the same second for the most part.

Probably the biggest cause of this error to begin with is poor script optimization. Basicaly Joe Blow writes a script that accesses the database in a sloopy way. As a result, his sloopy code on his rather poorly designed website can have the same impact on the server as Bill's really busy and well designed website. So Joe's site kills the server then Bill's users keep the server over taxed with their page refreshes and reloads.

OpaQue tries to identify websites on the server that have this kind of negative impact on the rest of the accounts and either work with the account holder to correct the problem or if need be remove the problem file.

So my suggestion to you is to create a backup page for your website that you can use to relieve the server burden. Some kind of "Technical Difficulties" message that you can set all of your webpages to redirect to via your .htaccess file. Then when this proble comes up, just switch over to your message page and that will prevent your users from continuing the connection flood on the database server.

Better yet, rewrite your scripts to respond better to the Too Many Connections Error. If this happens instead of telling the user right away, make the script sleep for a few seconds so they don't refresh right away. A five second pause for everyone on your site could be just what the server needs to get caught up. Using a random number between 5 and 10 seconds would also keep everyone from your website from having the opportunity to refresh at the same time.

One additional suggestion, let your user know what the problem and the solution is. If you tell your user that the problem is caused by too many connections at the same time and inform them that refreshing the page will only make the problem worse, they will be less likely to add to the problem. Kindly ask them to wait a minute before they try to refresh and most will at leat give it 10 seconds. tongue.gif Usually, the serve doesn't need a big break, just enough to get caught up and it will be fine.

For best results, you should use all of these techniques together. If everyone used just one of these suggestions, then the server would never be down. This is particularly true for a server pause when this error occurs since the server just needs a second or two without a connection request.

Hope this helps. cool.gif

vujsa

 

 

 


Comment/Reply (w/o sign-up)

Chesso
Was probably too many global wide connections. The home page only makes like 2 mysql_query's that are relativly simple select statements for one field of a row.

Comment/Reply (w/o sign-up)

vhortex
i think the choking points of the database server is starting to become frequent..
i dont know what is going on but judging on the number of shared hostings here..

3 malfuntioning scripts specially if they are on cron can crashed the server almost instantly...
the negative impacts of shared hosting..

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2
Similar Topics

Keywords : mysql, error, site, connections

  1. Time Travel?
    Site activity showing up from the past (4)
  2. Site Down Again, Help Or Suggestions?
    (6)
    I’m starting to get a complex because my site, ycoderscookbook.com is down again. I hate to SPAM
    the forums like this but I have a support ticket submitted and have not head anything in three days.
    From what I am seeing, the Gamma server is up but for some reason the DNS is not resolving to the
    domain. Ycoderscokbook.com has been down since Friday. Perhaps one of the admins can look into
    this for me /wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> I
    know that BuffloHELP was very nice after the server migration and pulled a few string....
  3. Can't Access Any Site Hosted On The Server
    (4)
    Ever since yesterday, I wasn't able to access my site http://maxotek.net , so I tried
    others' sites like http://www.handyphp.com , none of which opened. I've tried PINGing the
    sites and have received no response as yet. I've heard that there were some changes to the IP
    addresses for the shared IPs. Just a while ago, I heard from a friend of mine that he was able to
    access the sites. Another one reported of a Gateway Timeout error. Do I need to make some changes
    in the CPanel or will this be solved automatically?....
  4. Connecting To Astahost's Mysql
    (8)
    Now this topic could fit under lots of subforums but this isn't really a programming question
    but rather asking what asthosts mysql host is? Long story short I need to connect to a mysql
    database via c++ (I dont even know if that is possible) but I cant use localhost (for obviouse
    reasons). Could you tell me how to find the mysql host for my account? Thanks, Sparkx....
  5. Site Not Working
    Can access cpanel, but site will not load (5)
    Alright, well my website is http://www.sourcedevelop.com I can access cpanel by going to
    https://gamma.xisto.com:2083/frontend/rvblue/index.html and entering my username and password.
    However, when i try and load my website....it says that it cannot find the server. Anybody else
    experiencing this?....
  6. Mysql Server Not Stable After Hard Disk Swap On April 6th
    (2)
    Hi... All are aware of the server issues happened on April 6th:
    http://www.astahost.com/current-server-iss...ade-t15435.html I'm still facing the issue with
    the MySQL Server after the server problems!! I'm using phpBB forum for my site, and it often
    shows some error message after losing connection with the Database server! Its happening many times
    in a minute! Its not at all stable after the server issues! I had tried repairing the databases and
    optimizing the databases! But nothing helped me! Still facing the issues! Its showing like:
    DEBUG MODE ....
  7. Site / Account Not Working
    (10)
    I currently have over 10 credits, but my account isn't working as if my account had been
    depleted below zero. Help please?....
  8. Strange Error (maybe Directoryindex Glitch?)
    (6)
    So if I browse to my site, www.ethergeek.com it takes me to a download window which proceeds to
    download the PHP page from the server. If I type www.ethergeek.com/index.php the page loads as
    expected. This happens in other folders too...it almost seems like if the server looks at
    DirectoryIndex parameter it doesn't pass the page through the php preprocessor... Any ideas?....
  9. Site Not Opeing ( Phpbb Forum) :: Can't Connect To Local Mysql
    (3)
    Hi all, Please help me! My site was working fine! ( www.fun.niranvv.com ) But now, its showing
    one error message as: Warning: mysql_connect() : Can't connect to local MySQL server
    through socket '/var/lib/mysql/mysql.sock' (2) in
    /home/niranvv/public_html/fun/db/mysql4.php on line 48 Warning: mysql_error(): supplied argument is
    not a valid MySQL-Link resource in /home/niranvv/public_html/fun/db/mysql4.php on line 330 Warning:
    mysql_errno(): supplied argument is not a valid MySQL-Link resource in
    /home/niranvv/public_html/fun/db/mysql4.php on line....
  10. My Site Is Suspended
    xtremewarez.uni.cc (8)
    My site is just currently suspended and it says contact your billing/support of astahost but i have
    seen the support and all i se is oyu have ICQ and i do not have ICQ can i talk through here in the
    forum? Also, maybe you can get a live chat system and talk through there. Maybe we can talk through
    email/MSN if you have it. Thanks -Lewis P.S if i cannot keep my current site can you delete it
    and ill make another different one.....
  11. Server Or Me?
    I have an error? It doesn't look like anyone else has it? (5)
    OK I don't know if this is the right place for this so could the mods move it the the correct
    place? Thanks. Whenever I try to access my website or log onto the control pannel I get the
    following error message: QUOTE Network Error (tcp_error) A communication error occurred:
    "Operation timed out" The Web Server may be down, too busy, or experiencing other problems
    preventing it from responding to requests. You may wish to try again at a later time. For
    assistance, contact your network support team. It says contact support team (I assume thats
    you). Is an....
  12. What Is The MySQL Version @ Asta ?
    MySQL 4.0.26-Max
    (16)
    Hi, A few question here, 1. Just wondering, the MySQL hosted on astahost.com is actually version
    "4.0.26-Max" according to phpmyadmin. But why is cPanel showing "4.1.21-standard"? 2. Actually
    i've existing codes that need function introduced after version 4.1.1, is there by any chance
    astahost or xisto is going to upgrade the MySQL package? Thanks....
  13. Problem With MySQL
    (5)
    I tried to visit my website today and I recieved the dreadful page from my php-nuke site "There
    seems to be a problem with the MySQL database" First I thought, "no big deal server is probably
    rebooting or down for a little bit" So i logged into my cpanel and clicked on "Server Status".
    Thats when I started worrying. It said the MySQL servers were up and runnign fine. I went back to my
    main page and looked at my MySQL server count and instead of saying 2/99 it now says NA/99 I am
    unable to create a new database and I recieve this error when I click on PHPmyadmin QUO....
  14. Problems With cPanel
    Showing some error message (9)
    Hi all, I was trying to upload some files to my account using cpanel! There was no problem in the
    beginning! But suddently it shows one error message as: Sorry for the inconvenience!
    The filesystem mounted at / on this server is running out of disk space. cPanel operation has been
    temporarily suspended to prevent something bad from happening. Please ask your system admin to
    remove any files not in use on that partition. (Edit: Authentication is working fine! After
    authentication only, ith shows the error message like this! ) Please check this one: htt....
  15. Php And Mysql Version.
    (7)
    Is there any plan to upgrade or see if it can be upgraded to PHP5 and mySQL5 in the future?....
  16. Mysql Connect Error, Too Many Connections.
    (1)
    Just to begin with I want to say that I am not here necessarily to complain about it lol. I'm
    not sure but if my site is possibly helping to contribute to the problem, I'd like to know if
    anyone knows any good articles or tutorials that might have information on what to look out for that
    could contribute to these sort of problems. I know my site may not have anything to do with it (as
    I don't think it is overly popular or anything or even close), but knowing what to look out for
    when messing with PHP/mySQL would be great. I personally haven't found too....
  17. Something Odd On My Site......
    (9)
    I went to check out my site today and low and behold, some spyware try loading itself and some .wmv
    file tryed to run from the main page.... I was like "wtf mate lol", anyway I went into my cpanel
    file manager and checked out the index files source and someone has managed to add an iframe to the
    end of the source going to some advertising rubbish or some such. Is there anyway people can do
    this without my login details? If not can I request a change of password somehow /blink.gif"
    style="vertical-align:middle" emoid=":blink:" border="0" alt="blink.gif" />....
  18. Error Accessing Forum Topics
    Can't access certain forum topics (1)
    Hi. I have been experiencing difficulty accessing certain forum topics. This started quite some time
    back, but I always thought that the forum topics have been completely deleted, thus I'm not able
    to access it. Now, however, I just saw a forum topic that I could not access previously being in the
    last post column. I tried again but still I could not access it. The forum topic in this case is
    "Shoutbox Display Names". Any help would be appreciated. Thanx.....
  19. Site Unavailable!
    Server Timeout error! (7)
    My Astahost Website seems to be unavailable currently. The Time is : 4:15 PM IST (GMT+5:30hrs)
    The browser gives a "Server Timeout Error". Is this a temporary server downtime, or do I have to
    re-configure my site or something? I also have enough credits to go on with - 17 at this time...
    My site is : www.omkarshub.astahost.com ....
  20. Help Me!
    Frontpage & phpBB with MySQL (3)
    I was just approved an Astahost account with the starter package. I explored the Cpanel a bit
    and have got the following problems : 1.Frontpage Extensions The Cpanel states that the
    Frontpage Extensions have been installed. But when I uploaded my site on frontpage at
    "ftp://ftp.mysitename.astahost.com/public_html/" it stated an error that Fronpage Extensions are not
    installed on this server! When I opened my site online, I can see the page, but I cannot see any
    graphics/images! Also, my forms and other stuff isn't working either. Please help me out and let
    me....
  21. Problems With PHP/Joomla On Hosted Site
    PHP sevred pages are blank in Firefox, network error in Safari (9)
    I am having some odd problems with my hosted site. They started sometime yesterday. I have not made
    any changes for about two weeks. In Firefox, the index page (index.php) for Joomla comes up blank.
    I can access my Control Panel and can check that the files are there and look correct. No favorites
    icon is displayed either and the page source is empty. In Safari, I get the favorites icon but then
    get a network error and a blank page ("Safari can’t open the page “http://mistymanor.astahost.com/”.
    The error was: “lost network connection” (NSURLErrorDomain:-1005) Please cho....
  22. Mail Delevery System Error
    error (6)
    whenever i try to send an email, no matter where, from any of the accounts that i create in cpanel,
    i always get this error at the destinatary: QUOTE This message was created automatically by
    mail delivery software. A message that you sent could not be delivered to one or more of its
    recipients. This is a permanent error. The following address(es) failed: mustra@sapo.pt SMTP
    error from remote mail server after MAIL FROM: SIZE=1668: host mx.ptmail.sapo.pt : 554 sorry,
    your IP is rejected because it was flagged as an open-relay or abuser; o seu IP foi re....
  23. Weird MySQL Message
    (4)
    wenever i assign priviledges to a MySQL databases, it seems to work properly but this message is
    always there QUOTE bitshift_wforumu (Privileges: ALL PRIVILEGES) Connection Strings
    Perl $dbh = DBI->connect("DBI:mysql:bitshift_wforum:localhost","bitshift_wforumu"," ");
    PHP $dbh=mysql_connect ("localhost", "bitshift_wforumu", " ") or die ('I cannot connect to the
    database because: ' . mysql_error()); mysql_select_db ("bitshift_wforum"); My database
    name is: bitshift_wforum the username is: bitshift_wforumu What does all that maen, it ....
  24. Problem With MySQL Not Being Able To Connect
    Anyone know the reason for this error... (9)
    Hello everyone, Im currently having a problem with mySQL, I wrote a PHP login script that
    doesnt seem to be working for some reason. I created a database and everything looks correct, is
    this a server issue or is the issue related to my script? But anyway this is my error, hope someone
    can help Ive tried to search forum for answer but none of the posts seems to answer my question:
    QUOTE Warning: mysql_connect(): Host 'gamma.xisto.com' is not allowed to connect to this
    MySQL server in /home/hp2001/public_html/ucscKGD/checklogin.php on line 10 cannot co....
  25. Google Sitemaps Not Verifying My Site...
    Tells me to configure server (4)
    This is the error that Google gives me while i try to verify my site. NOT VERIFIED We've
    detected that your 404 (file not found) error page returns a status of 200 (OK) in the header. The
    explanation for this error at google is: This configuration presents a security risk for site
    verification and therefore, we can't verify your site. If your web server is configured to
    return a status of 200 in the header of 404 pages, and we enabled you to verify your site with this
    configuration, others would be able to take advantage of this and verify your site as well.....
  26. MySQL - Can't Connect
    Cristal Report (1)
    From http://thoaionline.com (hosted by Astahost) QUOTE Warning: mysql_connect(): Can't
    connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in
    /home/pheart/public_html/thoaionline/includes/database.mysql.inc on line 31 Can't connect to
    local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) In cPanel Mysql
    databases 0 / 99 But I have 5 MySQL databases in my account (maybe more). All of them become
    unusable now. Some more messages from http://website.thoaionline.com QUOTE Warning: 
    mysql_pc....
  27. Adsense Ad
    Is it ok to put on Astahost hosted site? (1)
    Is it OK or against the TOS to put an Adsense ad (or anyother content based Ads) on the website I am
    hosting at Astahost? Ooops! I am extremly sorry. I should I looked properly during my search on
    Adsense. It seems like I can put Google Adsense on my Astahost hosted website. Forum moderators,
    please excuse my blunder - you may close this thread.....
  28. Can I Access MySQL Database From Outsite, Directly
    (10)
    I'm going to make an OFFLINE FORUM. So I want to know is that possible or not. My paid host
    don't allow that. How about astahost?....
  29. Wrong Password/username - Fatal Error In Horde
    (5)
    I keep getting a fatal error when trying to check my webmail using Horde, through the CPanel. Also,
    when I try to open PhpMyAdmin I get an error saying "Wrong username/password. Access denied."
    However, I'm logged into CPanel fine, and after getting this error I changed my password. That
    went fine, as well. This is really annoying, I'm locked out of some stuff I sorta need access
    too. Anyone able to help?....
  30. MySQL Database
    Important Report (3)
    I'm writing this to report about a error. One of my mySQL database has been droped and my site
    stop working. I don't know the reason. I'm hosted on gamma server. I think you (admin)
    should check it. PS: One of my paid hosting provider also met this problem a few day ago.....

    1. Looking for mysql, error, site, connections



See Also,

*SIMILAR VIDEOS*
Searching Video's for mysql, error, site, connections
advertisement




Mysql Error Never Seen On My Site Before (too Many Connections).

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com



Creative Commons License