mysql error: Too many connections?!?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • X-Fan
    Senior Member
    • Jan 2002
    • 122
    • 3.0.7

    mysql error: Too many connections?!?

    This morning I woke up to an e-mail inbox chock full with over 400 e-mails that all read like this:

    Database error in vBulletin :

    Link-ID == false, connect failed
    mysql error: Too many connections

    mysql error number: 1040

    Date: Tuesday 05th of February 2002 01:22:13 PM
    Script: /xfan/forums/showthread.php?threadid=474&goto=newpost
    Referer: http://216.33.236.250/cgi-bin/linkrd...goto%3dnewpost

    What the heck does this mean and how can I stop this from happening again?!
    Eric J. Moreels
    ComiX-Fan Owner/Administrator
    e-mail: [email protected]
    Web: http://www.comixfan.com/xfan/
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 74161

    #2
    It means you are getting popular..

    If you are on a dedicated server you can tweak your MySQL installation and increase the number of concurrent connections allowed.

    If you are on shared hosting, you can turn off persistant connections in admin/config.php.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • X-Fan
      Senior Member
      • Jan 2002
      • 122
      • 3.0.7

      #3
      Originally posted by wluke
      It means you are getting popular..
      Always a plus!

      If you are on a dedicated server you can tweak your MySQL installation and increase the number of concurrent connections allowed.

      If you are on shared hosting, you can turn off persistant connections in admin/config.php.
      My site's on a private server, and to be honest I'm a newbie at all this! What do I have to tweak and how?

      Also, I'm curious, but is 3781 MB bandwidth for just over a day's running time good/bad/average for a site running vBulletin 2.2.2 with the vbPortal 3.0 front end?
      Eric J. Moreels
      ComiX-Fan Owner/Administrator
      e-mail: [email protected]
      Web: http://www.comixfan.com/xfan/

      Comment

      • X-Fan
        Senior Member
        • Jan 2002
        • 122
        • 3.0.7

        #4
        Originally posted by X-Fan
        What do I have to tweak and how?
        Anyone... anyone...?

        I'd really appreciate some help with this!

        Cheers,
        Eric J. Moreels
        ComiX-Fan Owner/Administrator
        e-mail: [email protected]
        Web: http://www.comixfan.com/xfan/

        Comment

        • George L
          Former vBulletin Support
          • May 2000
          • 32996
          • 3.8.x

          #5
          Originally posted by X-Fan


          Anyone... anyone...?

          I'd really appreciate some help with this!

          Cheers,
          to tweak your server you'll need me hehe

          do you have root server access ? if you do i need the following info so i can help you tweak your server

          provide the following

          1. your server specs, such as mysql and php version
          2. if possible how mysql was compiled/installed
          3. your top stats
          4. your mysql configuration variables located at /etc/my.cnf or c:\my.cnf if on Windows server if you don't have that file you need to log into telnet and as root user type

          mysqladmin -u root -p variables

          copy and paste output here

          5. your mysql extended-status output either still telnet as root user type

          mysqladmin -u root -p extended-status

          copy and paste output here

          or preferred is to installed extended-status output script which is located at http://vbulletin.com/forum/showthread.php?threadid=3477

          and post url to that here

          6. oh and is your vB the only thing on the server? or other scripts? sites?

          7. how many average and max concurrent users on your vB forum ?

          8. my sig has lots of mysql and vB related articles and documents
          :: Always Back Up Forum Database + Attachments BEFORE upgrading !
          :: Nginx SPDY SSL - World Flags Demo [video results]
          :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

          Comment

          • X-Fan
            Senior Member
            • Jan 2002
            • 122
            • 3.0.7

            #6
            Originally posted by eva2000
            1. your server specs, such as mysql and php version
            mySQL v3.23.36 and PHP v4.0

            2. if possible how mysql was compiled/installed
            It was there when I got there!

            3. your top stats
            Which particular top stats?

            or preferred is to installed extended-status output script which is located at http://vbulletin.com/forum/showthread.php?threadid=3477
            I uploaded and ran that script, but all I got was a blank page with the source code of:

            Code:
            <html><body><pre>
            
            
            </pre></body></html>
            6. oh and is your vB the only thing on the server? or other scripts? sites?
            vbPortal, and that's it.

            7. how many average and max concurrent users on your vB forum ?
            Average 60-80, max concurrent was 193.
            Eric J. Moreels
            ComiX-Fan Owner/Administrator
            e-mail: [email protected]
            Web: http://www.comixfan.com/xfan/

            Comment

            • George L
              Former vBulletin Support
              • May 2000
              • 32996
              • 3.8.x

              #7
              how much memory does your server have and cpu speed ?

              and what's the exact version of PHP you can create a phpinfo.php file with

              <?
              phpinfo();
              ?>

              inside it and upload to your web site and give us the url to it
              :: Always Back Up Forum Database + Attachments BEFORE upgrading !
              :: Nginx SPDY SSL - World Flags Demo [video results]
              :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

              Comment

              • X-Fan
                Senior Member
                • Jan 2002
                • 122
                • 3.0.7

                #8
                Originally posted by eva2000
                how much memory does your server have and cpu speed ?

                PIII 1130 MHz with 2048MB RAM.

                For full specs, click here

                - it's the iP Server4000 package.

                and give us the url to it


                Note that the admin contact given is not me, but my business partner's.
                Last edited by George L; Sun 17 Feb '02, 7:52pm.
                Eric J. Moreels
                ComiX-Fan Owner/Administrator
                e-mail: [email protected]
                Web: http://www.comixfan.com/xfan/

                Comment

                • George L
                  Former vBulletin Support
                  • May 2000
                  • 32996
                  • 3.8.x

                  #9
                  looks like you have full root access on a private server parition

                  you can create a file as root user

                  /etc/my.cnf

                  in my.cnf place the following

                  [client]
                  port = 3306
                  socket = /var/lib/mysql/mysql.sock

                  [mysqld]
                  port = 3306
                  socket = /var/lib/mysql/mysql.sock
                  skip-locking
                  set-variable = max_connections=400
                  set-variable = key_buffer=16M
                  set-variable = myisam_sort_buffer_size=64M
                  set-variable = join_buffer=3M
                  set-variable = record_buffer=3M
                  set-variable = sort_buffer=4M
                  set-variable = table_cache=1024
                  set-variable = thread_cache_size=256
                  set-variable = wait_timeout=3600
                  set-variable = connect_timeout=10

                  [safe_mysqld]
                  open-files-limit=8192

                  [mysqldump]
                  quick
                  set-variable = max_allowed_packet=128M

                  [myisamchk]
                  set-variable = key_buffer=128M
                  set-variable = sort_buffer=128M
                  set-variable = read_buffer=16M
                  set-variable = write_buffer=16M
                  and restart mysql
                  :: Always Back Up Forum Database + Attachments BEFORE upgrading !
                  :: Nginx SPDY SSL - World Flags Demo [video results]
                  :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

                  Comment

                  • X-Fan
                    Senior Member
                    • Jan 2002
                    • 122
                    • 3.0.7

                    #10
                    Originally posted by eva2000
                    looks like you have full root access on a private server parition
                    Well my business partner has the password, so I'll get him to do it.

                    and restart mysql
                    Scuse my newbie-ness showing, but how do I restart mySQL? And what effect will that have on the existing database?
                    Eric J. Moreels
                    ComiX-Fan Owner/Administrator
                    e-mail: [email protected]
                    Web: http://www.comixfan.com/xfan/

                    Comment

                    • George L
                      Former vBulletin Support
                      • May 2000
                      • 32996
                      • 3.8.x

                      #11
                      try

                      /etc/rc.d/init.d/mysql stop
                      /etc/rc.d/init.d/mysql start

                      or

                      mysql.server stop
                      mysql.server start

                      you might need to find the correct path to those for ensim private servers
                      :: Always Back Up Forum Database + Attachments BEFORE upgrading !
                      :: Nginx SPDY SSL - World Flags Demo [video results]
                      :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

                      Comment

                      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                      Working...