session_start(), memcache taking too much resources
| From: | Ing. Branislav Geržo | Date: | Thu, 03 Nov 2011 20:22:28 +0000 |
| Subject: | session_start(), memcache taking too much resources | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-315584@lists.php.net to get a copy of this message | ||
Hi,
I am running high loaded website and I did some profiling, because
webservers got high load. PHP Version 5.3.8, running FreeBSD 8.2-STABLE,
on lighttpd 1.4.29, running php-fpm on 3 servers
xdebug is showing, that calling line "session_start()" is taking too
much time, which I am really surprised. So I think, something is wrong
with session handler. Please check screenshot:
http://oi42.tinypic.com/24czlu8.jpg
session.save_handler memcache
session.save_path
tcp://web1:11211?persistent=1&weight=1timeout=2&retry_interval=5,
tcp://web2:11211?persistent=1&weight=1&timeout=2&retry_interval=5
I am using pecl memcache 3.0.6
Please advice.
Thanks guys.