Use Pconnect?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bigsoccer tech
    Senior Member
    • Apr 2000
    • 573
    • 3.6.x

    Use Pconnect?

    We have four web servers. Our sysadmin is recommending using Pconnect - we currently have it off? We wants me to ask here if we should turn it on. We are havign some db issues where our db runs out of threads/cnxns. our site is very large and he says its application dependent if its good to have on or not. wants to know what vb thinks..

    so?
    The BIG Network: Soccer - Aussie Rules - Cricket - Travel - Lacrosse - Music
  • Steve Machol
    Former Customer Support Manager
    • Jul 2000
    • 154488

    #2
    Personally I would leave this turned off, otherise you may run into 'max_connections' errors. If you really want to turn this on, you do it in the config.php file:


    PHP 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'] = 1
    Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
    Change CKEditor Colors to Match Style (for 4.1.4 and above)

    Steve Machol Photography


    Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


    Comment

    • bigsoccer tech
      Senior Member
      • Apr 2000
      • 573
      • 3.6.x

      #3
      Steve

      Not asking how but why/if? We are already running into max cnxns errors which is why we were exploring it. The only threads on thsi site debating the pro cons are 2 years old. Can someone explain why /if a large site shoudl consider it?
      The BIG Network: Soccer - Aussie Rules - Cricket - Travel - Lacrosse - Music

      Comment

      • Steve Machol
        Former Customer Support Manager
        • Jul 2000
        • 154488

        #4
        As I said "personally I would leave this turned off, otherise you may run into 'max_connections' errors". I have never run into any situation where I saw a noticable benefit to having persistent connections turned on.
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment

        • Mike Sullivan
          Former vBulletin Developer
          • Apr 2000
          • 13327
          • 3.6.x

          #5
          The connection overhead of MySQL is not especially large. The connections are persistant per Apache thread only, I believe, so you'd have a lot of connections open at a time, which means more memory usage.

          Personally, I'd leave them off. But it's one of those things that you should test for a day each way and see what works better.

          Comment

          • bigsoccer tech
            Senior Member
            • Apr 2000
            • 573
            • 3.6.x

            #6
            Thanks guys. Great support as always.
            The BIG Network: Soccer - Aussie Rules - Cricket - Travel - Lacrosse - Music

            Comment

            widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
            Working...
            😀
            😂
            🥰
            😘
            🤢
            😎
            😞
            😡
            👍
            👎