For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > March 2006 > Re: Threads connected reaching maximum connection - using PEAR DB









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Threads connected reaching maximum connection - using PEAR DB
Lukas Kahwe Smith

2006-03-28, 3:59 am

surendra kumar wrote:
> Hellow smith,
> I am using Pear DB method to connect to mysql from my php
> applications (web based appliction using apache). I am not using
> persistent connection as well.
>
> For some reason the threads created during the application is not
> being terminated with the mysql, which accumulates to give "maximum
> number of connection error" over a period of time.
>
> Is there any configuration parameter or any solution that I can change
> to overcome this error?


Not really .. for one are you sure you are not using persistent
connections any where? Are you sure you are not just getting too many
requests? Do you have the same number of possible open connections as
you have maximum apache childs?

regards,
Lukas
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com