Server gurus step in~! (Solution to crashing server due to traffic spikes!)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SeanLEE
    Confirmed User
    • Feb 2006
    • 1556

    #1

    Server gurus step in~! (Solution to crashing server due to traffic spikes!)

    What is the solution to this database error:
    User 123456 already has more than 'max_user_connections' active connections....

    One of our sites hosted on a dedicated by itself cant seem to have more than 200-250 users online or it crashes.
    What do you suggest? We have tried a 'cache' -- with no luck when big spikes of traffic hit.



    Does this means its time to increase the server size?


    If so, for a media transfer site, -would you rather 2 dedicated servers or just 1 high powered dedicated? What type of server is best for a High trafficked tube?

    This error is hindering our growth--- someone help us out--

    What would be the setup to have 10,000 people at a time uploading and viewing media at one time?

    Someone help out-- lets do business host
    I spammed in threads!
  • PSD
    PornSiteDomains.com
    • Oct 2002
    • 1265

    #2
    so your saying you can't increase the max_user_connections value above 200-250 without it crashing?
    Last edited by PSD; 06-26-2012, 08:57 PM.
    PornSiteDomains.com

    Comment

    • Vapid - BANNED FOR LIFE
      Barterer
      • Aug 2004
      • 4864

      #3
      Doubt it JCK, increase max_user_connections in the mysql config file.

      http://dev.mysql.com/doc/refman/5.0/...resources.html

      Comment

      • k0nr4d
        Confirmed User
        • Aug 2006
        • 9231

        #4
        increase max_user_connections or decrease keepalive/timeout
        Mechanical Bunny Media
        Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development

        Comment

        • sandman!
          Icq: 14420613
          • Mar 2001
          • 15431

          #5
          what did your hosting company say ?

          from the sounds of your post you should have a managed server with the kind of questions your asking.
          Need WebHosting ? Email me for some great deals [email protected]

          Comment

          • SeanLEE
            Confirmed User
            • Feb 2006
            • 1556

            #6
            Host gators default is: 25


            They have it set to 25 on this dedicated server...they say they dont want to change it it. They are saying the problem is the code needs to be optimized... and upping the connections amount is just a temporary band-aid that will still not stop the problem, and maybe make it worse. Is this accurate?

            Then sent me this in a email:
            How to Optimize a MySQL Database using phpMyAdmin

            Optimize Database
            Repair Database

            Optimize Table should be used if you have deleted a large part of a table or if you have made many changes to a table with variable length rows, such as VARCHAR, TEXT, BLOB or VARBINARY columns. Deleted rows are maintained in the linked list and insert operations reuse the old row positions. You can use "Optimize Table" to reclaim unused space and defragment the data file for optimal performance. If a lot of changes have been made to a table, optimizing the table can sometimes significantly improve performance.
            Step 1: Login to phpMyAdmin

            cPanel: (Shared, Reseller, SEO, Linux Dedicated, VPS with cPanel)

            Login to cPanel
            Click on the phpMyAdmin button in the Databases section.

            Plesk 10: (Windows Shared, Windows Dedicated, VPS with Plesk)

            Login to Plesk
            Click on the Websites & Domains tab.
            Click on the Databases icon.
            Click on the database you want to manage.
            Click on the Webadmin icon.

            Step 2: Optimize Tables

            Select the database you want to optimize from the list in the left column, which should take you to the "structure" tab for the database.
            Select the tables you wish to optimize by checking the check box in front of each one, or clicking on Select All if you want to optimize all of them.
            On the drop down box that says "with selected..." select "Optimize Table." This will optimize the table and take you to a new screen.
            I spammed in threads!

            Comment

            • bean-aid
              So Fucking Banned
              • Jun 2011
              • 16493

              #7
              Just talk to the guy who hosts many a tube... Brad at mojohost...

              Comment

              • PSD
                PornSiteDomains.com
                • Oct 2002
                • 1265

                #8
                what is the point of a dedicated server if the host dictates what the settings are on it. Do you not have root access to login and change it yourself? The default is max_user_connections=0 which is no limit.
                Last edited by PSD; 06-26-2012, 09:50 PM.
                PornSiteDomains.com

                Comment

                • SeanLEE
                  Confirmed User
                  • Feb 2006
                  • 1556

                  #9
                  Originally posted by JCK
                  what is the point of a dedicated server if the host dictates what the settings are on it. Do you not have root access to login and change it yourself? The default is max_user_connections=0 which is no limit.
                  no ........
                  I spammed in threads!

                  Comment

                  • BIGTYMER
                    Junior Achiever
                    • Nov 2004
                    • 17066

                    #10
                    Increase max and turn off persistent connections.

                    Comment

                    • sandman!
                      Icq: 14420613
                      • Mar 2001
                      • 15431

                      #11
                      if its 25 tell them to change it to 50 and see if that helps.


                      Originally posted by SeanLEE
                      Host gators default is: 25


                      They have it set to 25 on this dedicated server...they say they dont want to change it it. They are saying the problem is the code needs to be optimized... and upping the connections amount is just a temporary band-aid that will still not stop the problem, and maybe make it worse. Is this accurate?

                      Then sent me this in a email:
                      Need WebHosting ? Email me for some great deals [email protected]

                      Comment

                      • PSD
                        PornSiteDomains.com
                        • Oct 2002
                        • 1265

                        #12
                        If you email me I'll try and help more.
                        PornSiteDomains.com

                        Comment

                        • MMarko
                          Confirmed User
                          • Jun 2007
                          • 160

                          #13
                          If you want to run media sites you will have to find solid hoster which knows how to tune site to make sites running smooth. If you aren't allowed to do basic tweaking then there is really nothing you can do except to migrate somewhere else.
                          dlXer - web design, developing, managed hosting, website optimizations

                          Comment

                          • alias
                            aliasx
                            • Apr 2001
                            • 19010

                            #14
                            Crank up max users.
                            https://porncorporation.com

                            Comment

                            • raymor
                              Confirmed User
                              • Oct 2002
                              • 3745

                              #15
                              First check the slow query log, EXPLAIN the queries, and add the needed indexes so fewer connections are required. Then increase max connections and benchmark with and without persistent connections.

                              Hostgator's flat out refusal is in my opinion unacceptable. When we invite webmasters to host with us, we FIX such problems, not refuse to cooperate. (Yes we still do some hosting - for established clients only, we refer most people elsewhere, so this isn't intended to spam it.)
                              For historical display only. This information is not current:
                              support@bettercgi.com ICQ 7208627
                              Strongbox - The next generation in site security
                              Throttlebox - The next generation in bandwidth control
                              Clonebox - Backup and disaster recovery on steroids

                              Comment

                              • Lace
                                Too lazy to set a custom title
                                • Mar 2004
                                • 16116

                                #16
                                HostGator is your first problem.
                                Your Paysite Partner
                                Strength In Numbers!
                                StickyDollars | RadicalCash | KennysPennies | HomegrownCash

                                Comment

                                • careerbuilder
                                  Registered User
                                  • Jun 2012
                                  • 51

                                  #17
                                  Originally posted by Lace
                                  HostGator is your first problem.
                                  true that.,

                                  if you own dedicated server then you should own it.,

                                  what i mean is you should have root, and change the settings as per your requiremenets.

                                  good luck.

                                  Comment

                                  • HomerSimpson
                                    Too lazy to set a custom title
                                    • Sep 2005
                                    • 13826

                                    #18
                                    http://www.awmzone.com/services
                                    Make a bank with Chaturbate - the best selling webcam program
                                    Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

                                    PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:

                                    Comment

                                    Working...