Re: session_start(), memcache taking too much resources

From: Date: Mon, 07 Nov 2011 14:06:43 +0000
Subject: Re: session_start(), memcache taking too much resources
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-315608@lists.php.net to get a copy of this message
On 3 Nov 2011, at 20:22, Ing. Branislav Geržo wrote: > 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 Sounds to me like an issue connecting to memcached, possibly DNS-related. How is the lookup of web1/web2 being performed? Have you tried the lookup on the server? Alternatively try connecting to the memcached servers using netcat or telnet - does that exhibit the same delay? -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/

« previous php.general (#315608) next »