Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2006
    Posts
    283
    Plugin Contributions
    0

    Default connection pooling? To many mySQL processes

    Zen Cart: 1.5.1 35K products. Auto updating of 1-20
    products every 10 hours via cron.
    PHP version 5.3.16
    MySQL version 5.1.62-cll
    Architecture i686
    Operating system linux

    Getting harassed by host for too many mySQL processes/connections. Could this be a connection pooling issue with ZC connection function?


    Should I change
    $this->link = @mysql_connect($zf_host, $zf_user, $zf_password, true);

    to this:

    $this->link = @mysql_connect($zf_host, $zf_user, $zf_password);

    We get about 500 hits per hour, would that justify 150 connections at any 1 time ( which is what host is saying we are doing ).

    Thank you for any pointer or help
    22 stores and counting! Ive been zenned.

  2. #2
    Join Date
    Mar 2006
    Posts
    283
    Plugin Contributions
    0

    Default Re: connection pooling? To many mySQL processes

    Also mysql_connect is depreciated.
    http://php.net/manual/en/function.mysql-connect.php

    Is it inefficient? Could this be why Im having an excess of connections? Thanks for any help.
    22 stores and counting! Ive been zenned.

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: connection pooling? To many mySQL processes

    What php version are you using??
    This extension is deprecated as of PHP 5.5.0
    Zen-Venom Get Bitten

  4. #4
    Join Date
    Mar 2006
    Posts
    283
    Plugin Contributions
    0

    Default Re: connection pooling? To many mySQL processes

    Quote Originally Posted by kobra View Post
    What php version are you using??
    Sorry you are correct... depreciation of mysql_connect is irrelevant since Im using 5.3.16.

    What other ideas might you have for excessive mySQL connections? Someone suggested this to help with connection pooling? :

    $this->link = @mysql_connect($zf_host, $zf_user, $zf_password, true);

    to this:

    $this->link = @mysql_connect($zf_host, $zf_user, $zf_password);

    My reference is this: http://www.zen-cart.com/showthread.p...nect-is-unused I know its regarding pconnect, but gave me the ideas about the pooling possibility?

    Any advice is appreciated.
    Last edited by makenoiz; 20 Jan 2013 at 03:54 AM.
    22 stores and counting! Ive been zenned.

 

 

Similar Threads

  1. MySQL connection on install
    By timtierney in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 6 May 2010, 09:02 PM
  2. 2013 Lost connection to MySQL server during query
    By rgriffith98 in forum General Questions
    Replies: 8
    Last Post: 24 Nov 2008, 08:53 PM
  3. mysql connection string change?
    By octopusbjj in forum General Questions
    Replies: 2
    Last Post: 15 Feb 2008, 08:11 PM
  4. MySQL Cache, Processes Settings
    By NamSingh in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 17 Feb 2007, 04:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg