[TYPO3-dev] Typo3 and persistent connexions
Dmitry Dulepov
dmitry.dulepov at gmail.com
Mon Feb 28 14:58:08 CET 2011
Hi!
Steffen Kamper wrote:
> i don't know if it's good to turn it off, i guess it's a performance
> lose with single connections.
Persistent connections are not good for TYPO3. TYPO3 does not always free
resources. In case of persistent connections those resources continue to
live after the current script is ended (I got that conclusion by looking at
PHP "C" source code). So the more PHP scripts are processed, the more
memory is leaked. The more memory is leaked, the slower the system becomes.
So it is best not to use persistent connections, especially with such a
database hungry script as TYPO3.
If turning persistent connection is not possible (can't imagine why
thought), one solution is to set a limit on a number of request that Apache
process handles. But that is not good for high load web sites because
spawning a new process is an expensive operation.
--
Dmitry Dulepov
TYPO3 core&security team member
E-mail: dmitry.dulepov at typo3.org
Web: http://dmitry-dulepov.com/
More information about the TYPO3-dev
mailing list