Re: session_start(), memcache taking too much resources

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux