Re: Re: Persistant Connections and max_connections on mysql
| From: | Catalin Trifu | Date: | Tue, 21 Jun 2005 11:24:44 +0000 |
| Subject: | Re: Re: Persistant Connections and max_connections on mysql | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-217292@lists.php.net to get a copy of this message | ||
One other mysql optimization is to increase the thread_pool.
This way mysql spends less time creating threads; which on linux without NPTL
is not exactly a cheap operation.
Catalin
Dan Rossi wrote:
>
> On 21/06/2005, at 7:47 PM, Catalin Trifu wrote:
>
>>
>> I presume you mean whether it's interactive_timeout or
>> wait_timeout, or ?
>> Actually they both are important. Read the mysql at dev.mysql.com
>>
>> C.
>>
>>
>
> We should be sweet now, still use persistant connections on a high
> traffice server, but reduce the timeout for the threads before they drop
> off, hence why they stay open for so long and then run into the
> max_connection issues.