Getting constant connection errors.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 1yesfan
    Senior Member
    • Feb 2002
    • 616
    • 3.6.x

    Getting constant connection errors.

    The last couple days I have been seeing this....

    Database error in vBulletin :

    mysql_pconnect() [<a href='function.mysql-pconnect'>function.mysql-pconnect</a>]: User yesfan1_manfc0 has already more than 'max_user_connections' active connections
    /home/yesfan1/public_html/includes/class_core.php on line 271

    MySQL Error :


    My server folks have went in and reset and raised my connection...

    "have restarted the mysql service, make sure in your coding that you are closing connections to mysql, as you can only have so many open before you get this error. And this could be a cuase."

    They are saying I need to make sure my code is closing connections???? How do I check for that?

    Tim
    Tim L
    www.yesfans.com
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    Make sure pconnect is off in your includes/config.php file:

    Code:
    	//	****** MASTER DATABASE PERSISTENT CONNECTIONS ******
    	//	This option allows you to turn persistent connections to MySQL on or off.
    	//	The difference in performance is negligible for all but the largest boards.
    	//	If you are unsure what this should be, leave it off. (0 = off; 1 = on)
    $config['MasterServer']['usepconnect'] = 0;
    If this is currently set to 1 then changing it to 0 might help the problem. Otherwise you need to get your host to increase the connection limit.

    Comment

    • 1yesfan
      Senior Member
      • Feb 2002
      • 616
      • 3.6.x

      #3
      Ok, it was on 1 so I set it to 0. Thanks!
      Tim L
      www.yesfans.com

      Comment

      • 1yesfan
        Senior Member
        • Feb 2002
        • 616
        • 3.6.x

        #4
        What did this do for me?
        Tim L
        www.yesfans.com

        Comment

        • Jake Bunce
          Senior Member
          • Dec 2000
          • 46598
          • 3.6.x

          #5
          It will now drop each database connection when the request is done. You won't notice any difference on your forum. Hopefully this will prevent you from reaching the connection limit again.

          Comment

          • 1yesfan
            Senior Member
            • Feb 2002
            • 616
            • 3.6.x

            #6
            What are the pro's and con's of this being set to 1 or 0?
            Tim L
            www.yesfans.com

            Comment

            • Jake Bunce
              Senior Member
              • Dec 2000
              • 46598
              • 3.6.x

              #7
              On busy forums the persistent connections can reduce load on the database server I think.

              Comment

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