[wp-hackers] WordPress persistent connections

Leo Baiano ljunior2005 at gmail.com
Fri Oct 5 19:47:44 UTC 2012


Drika,

If the problem is that it has many open connections using mysql_pconnect
will not worsen the pconnect persists the connection, it does not close,
however, also does not allow more than one connection is open before
connecting it checks if there is already a connection open and if so he
grabs the link and it did not open another connection as with mysql_connect.

I figured that the wp-db.php pconnect was without the standard WP is the
mysql_connect if I'm not mistaken, I actually suggested that to change
pconnect.

2012/10/5 Chason Chaffin <chason at gmail.com>

> Do you know if this happens on a fresh WordPress installation? In my
> experience, these issues usually have to do with a theme or a plugin
> installed on the system.
>
> On Fri, Oct 5, 2012 at 10:41 AM, wpmidia lab <wpmidia at gmail.com> wrote:
>
> > Hi Léo!
> >
> > The problem is that there are multiple connections not closed on the
> > server, you know?
> > I think using mysql_pconnect, will only worsen. I checked the file
> > wp-db.php WordPress and not using mysql_pconnect.
> >
> >
> >
> >
> > 2012/10/5 Leo Baiano <ljunior2005 at gmail.com>
> >
> > > Have you tried to change the wp-db.php to use mysql_pconnect instead of
> > > mysql_connect? should solve the pconnect since it prevents it from
> being
> > > opened when a connection already exists.
> > >
> > > 2012/10/5 wpmidia lab <wpmidia at gmail.com>
> > >
> > > > We are having problems using the WordPress in a site with a lot of
> > hits.
> > > >
> > > > The staff that manages the server reports that the WordPress open
> > > multiple
> > > > connections and not closing.
> > > >
> > > > Now, I need to resolve this, but I don't know how to find where this
> > > > problem occurs.
> > > >
> > > > Where this problem happens and how to resolve this issue of
> persistent
> > > > connection?
> > > >
> > > >
> > > > Thanks in advance!
> > > >
> > > > --
> > > > *Míriam de Paula *
> > > > *Twitter:* @miriamdepaula
> > > >
> > > > *desenvolvimento web*
> > > > http://wpmidia.com.br
> > > > twitter: @wpmidia
> > > >
> > > > *WordPress Brasil no Facebook:*
> > > > http://www.facebook.com/groups/wordpress.brasil
> > > >
> > > > *OpenCart Brasil no Facebook:*
> > > > http://www.facebook.com/groups/opencart.brasil/
> > > >
> > > > *Hospedagem de Qualidade é na HostGator<
> > > > http://www.hostgator.com.br/6133-4.html>
> > > > *
> > > > _______________________________________________
> > > > wp-hackers mailing list
> > > > wp-hackers at lists.automattic.com
> > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > >
> > >
> > >
> > >
> > > --
> > > Amplexos,
> > >
> > > Leo Baiano
> > > http://www.leobaiano.com
> > > http://www.blog.ljunior.com
> > > http://www.mcelebridades.com
> > > http://www.twitter.com/leobaiano
> > > _______________________________________________
> > > wp-hackers mailing list
> > > wp-hackers at lists.automattic.com
> > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > >
> >
> >
> >
> > --
> > *Míriam de Paula *
> > *Twitter:* @miriamdepaula
> >
> > *desenvolvimento web*
> > http://wpmidia.com.br
> > twitter: @wpmidia
> >
> > *WordPress Brasil no Facebook:*
> > http://www.facebook.com/groups/wordpress.brasil
> >
> > *OpenCart Brasil no Facebook:*
> > http://www.facebook.com/groups/opencart.brasil/
> >
> > *Hospedagem de Qualidade é na HostGator<
> > http://www.hostgator.com.br/6133-4.html>
> > *
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Amplexos,

Leo Baiano
http://www.leobaiano.com
http://www.blog.ljunior.com
http://www.mcelebridades.com
http://www.twitter.com/leobaiano


More information about the wp-hackers mailing list