[TYPO3] Lots of open DB connections

Another Vision info at anothervision.co.uk
Thu Feb 16 20:45:15 CET 2006


 
Thanks Dmitry. 

I'll look into the install and probably leave it at that since you say their
PHP should recycle the connections.

I can always look smart if they come back to me by telling them what they
should already know : )

M

-----Original Message-----
From: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de] On Behalf Of Dmitry
Dulepov
Sent: Thursday 16 February 2006 17:56
To: typo3-english at lists.netfielders.de
Subject: Re: [TYPO3] Lots of open DB connections

Hi!

Another Vision wrote:
> I've had a request from tech support at a host who runs a Typo3 3.6 
> site saying that there are lots of DB connections left open, and can I 
> make sure the php script/s are dropping the connection...

Strange that it bothers them. Connections will be reused by PHP when
necessary. This question from them does not look very prefessional too me...

Anyway, you can put a code to close connection to the very bottom of
index_ts.php (which index.php on the root level). It should look like:

	mysql_close($TYPO3_DB->link).

and you should check install tool that you do not use persistent
connections. This code is a hack and I do not recommend using it. Leave it
PHP.

Dmitry.
--
"It is our choices, that show what we truly are, far more than our
abilities." (A.P.W.B.D.) _______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english








More information about the TYPO3-english mailing list