Re: Re: Sobre funcion mysql_pconnect()

From: Date: Fri, 21 Oct 2005 15:22:22 +0000
Subject: Re: Re: Sobre funcion mysql_pconnect()
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-56292@lists.php.net to get a copy of this message
Leonardo Boet Sánchez wrote:
Como les decía en el primer mensaje de este hilo (si se me había quedado algo del manual), todo parece indicar que si, según la documentación se crea una conexión por cada hilo (hijo) de apache, de ahí en adelante no debe seguir creando mas conexiones.
http://www.php.net/manual/en/features.persistent-connections.php « If anyone ever wonders why the number of idle db process (open connections) seems to grow even though you are using persistent connections, here's why: « "You are probably using a multi-process web server such as Apache. Since database connections cannot be shared among different processes a new one is created if the request happen to come to a different web server child process." » Esto es lo que yo recordaba. No he investigado más, así que no podría decirte cómo solucionar el problema (ni siquiera asegurarte que éste es el problema)
personalmente siempre que puedo utilizar conexiones persistente las usos, por el simple hecho (como dice el manual: La respuesta aqui es extremadamente simple -- eficiencia).
http://www.php.net/manual/en/features.persistent-connections.php « The answer here is extremely simple -- efficiency. Persistent connections are good **if the overhead to create a link to your SQL server is high.** » -- Atentamente, J. Rafael Salazar Magaña Innox - Innovación Inteligente Tel: +52 (33) 3615 5348 ext. 205 Cel: +52 (33) 1042 8382 rsalazar@innox.com.mx http://www.innox.com.mx

« previous php.general.es (#56292) next »