Re: I get 'Could NOT connect to memcache server' sometimes even when server is up

2010-07-12 Thread dormando
> switched to 4 secs now. also if its a packet loss issue will it make sense to > reduce the $retry_interval from the default 15 secs to say 2 > secs? http://us2.php.net/manual/en/memcache.setserverparams.php > also the error that i get intermittenly is "COULD NOT CONNECT TO SERVE". Is > there

Re: I get 'Could NOT connect to memcache server' sometimes even when server is up

2010-07-12 Thread Gavin M. Roy
What is your pageview velocity? There's really no good reason you should be seeing intermittent failure and having timeouts that high will impact your pageload performance. As was mentioned, if you're seeing behavior like this you ever have serious network or server hardware/configuration issues

Re: I get 'Could NOT connect to memcache server' sometimes even when server is up

2010-07-12 Thread Snehal Shinde
switched to 4 secs now. also if its a packet loss issue will it make sense to reduce the $retry_interval from the default 15 secs to say 2 secs? http://us2.php.net/manual/en/memcache.setserverparams.php also the error that i get intermittenly is "COULD NOT CONNECT TO SERVE". Is there a way to find

Re: I get 'Could NOT connect to memcache server' sometimes even when server is up

2010-07-12 Thread dormando
On Mon, 12 Jul 2010, Snehal Shinde wrote: > I am using the stable 2.x one. I have set the timeout to 3 secs now. Lets see > how that goes > Snehal You might want to stick with 2 or 4 seconds to test :) putting it right on the line with the SYN timeout will still give you inconsistent results...

Re: I get 'Could NOT connect to memcache server' sometimes even when server is up

2010-07-12 Thread Snehal Shinde
I am using the stable 2.x one. I have set the timeout to 3 secs now. Lets see how that goes Snehal On Sun, Jul 11, 2010 at 10:33 PM, dormando wrote: > > > On Sun, 11 Jul 2010, Snehal Shinde wrote: > > > Yes Jay is right. My server and client config are in sync. The problem > > is only intermit

Re: I get 'Could NOT connect to memcache server' sometimes even when server is up

2010-07-11 Thread dormando
On Sun, 11 Jul 2010, Snehal Shinde wrote: > Yes Jay is right. My server and client config are in sync. The problem > is only intermittent and so i felt maybe increasing the default > timeout might help. Any idea how i can increase the default memcache > timeout for the php client Memcache? I fo

Re: I get 'Could NOT connect to memcache server' sometimes even when server is up

2010-07-11 Thread Snehal Shinde
Yes Jay is right. My server and client config are in sync. The problem is only intermittent and so i felt maybe increasing the default timeout might help. Any idea how i can increase the default memcache timeout for the php client Memcache? On Sunday, July 11, 2010, Jay Paroline wrote: > On Jul

Re: I get 'Could NOT connect to memcache server' sometimes even when server is up

2010-07-11 Thread Jay Paroline
On Jul 12, 12:29 am, Dustin wrote: > On Jul 11, 4:44 pm, Snehal Shinde wrote: > > > Yes the default port is 11211 but i override it in my php code to 11234 and > > i do habe the memcached server running at port 11234. So that is not the > > problem atall > >   You said you successfully telnette

Re: I get 'Could NOT connect to memcache server' sometimes even when server is up

2010-07-11 Thread Dustin
On Jul 11, 4:44 pm, Snehal Shinde wrote: > Yes the default port is 11211 but i override it in my php code to 11234 and i > do habe the memcached server running at port 11234. So that is not the > problem atall You said you successfully telnetted to port 12345, not 11234.

Re: I get 'Could NOT connect to memcache server' sometimes even when server is up

2010-07-11 Thread Snehal Shinde
Yes the default port is 11211 but i override it in my php code to 11234 and i do habe the memcached server running at port 11234. So that is not the problem atall On Jul 11, 2010, at 2:08 PM, James Phillips wrote: > Port is 11211 not 11234 > > > > On Jul 11, 2010, at 1:49 PM, Snehal Shind

Re: I get 'Could NOT connect to memcache server' sometimes even when server is up

2010-07-11 Thread James Phillips
Port is 11211 not 11234 On Jul 11, 2010, at 1:49 PM, Snehal Shinde wrote: > In my PHP code I am using the correct port number as shown below: > > $mResult = $this->cache->connect($my_ip,"11234"); > if($mResult===false) { > $this->error = "Co

Re: I get 'Could NOT connect to memcache server' sometimes even when server is up

2010-07-11 Thread Trond Norbye
On 11. juli 2010, at 22.49, Snehal Shinde wrote: > In my PHP code I am using the correct port number as shown below: > > $mResult = $this->cache->connect($my_ip,"11234"); That's different from 12345. Trond > if($mResult===false) { > $t

Re: I get 'Could NOT connect to memcache server' sometimes even when server is up

2010-07-11 Thread Snehal Shinde
In my PHP code I am using the correct port number as shown below: $mResult = $this->cache->connect($my_ip,"11234"); if($mResult===false) { $this->error = "Could NOT connect to memcache server"; error_log($this->error); } On Sun, Jul 11, 2010 at 12:44 PM, a. wrote: > If you telnet to port 123

Re: I get 'Could NOT connect to memcache server' sometimes even when server is up

2010-07-11 Thread a.
If you telnet to port 12345 (as you mentioned in your first mail), then maybe you should change the 11211 (which is the default port for memcached) in your php.ini? a. On Jul 11, 2010, at 9:32 PM, Snehal Shinde wrote: > These are my PHP Memcache settings > > [r...@app1 ~]# php -i | grep mem

Re: I get 'Could NOT connect to memcache server' sometimes even when server is up

2010-07-11 Thread Snehal Shinde
When users access the site, to get data it tries to connect to memcache. I check if I am getting an error value back while connecting. That is when I get this error message. However, as soon as I get this error, I immediately go and check if the process is up and everytime its up and working fine.

Re: I get 'Could NOT connect to memcache server' sometimes even when server is up

2010-07-11 Thread Snehal Shinde
These are my PHP Memcache settings [r...@app1 ~]# php -i | grep memcache PHP Warning: Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you a

Re: I get 'Could NOT connect to memcache server' sometimes even when server is up

2010-07-11 Thread Dustin
On Jul 11, 9:40 am, snehal wrote: > Can someone please tell me why do i STILL keep getting the COULD NOT > CONNECT to the server ERROR? Would really really appreciate a quick > response. What is producing that error?

I get 'Could NOT connect to memcache server' sometimes even when server is up

2010-07-11 Thread snehal
team, i am having this problem for quite sometime now. i have setup a memcached server on app1. and this is accessed from app1, app3 and app4 servers. I have seen that the server is always up and it has data cached in it. but still quite a few times (atleast 20-30 times) every day I keep getting t