MemCached Get Issue

Ryan LeCompte lecompte at gmail.com
Tue Jun 24 15:29:39 UTC 2008


You wrote ... "The server with 5MB data size support is running on
Linux server ..." -- I thought the memcached limit for a value was
1MB?

Ryan


On Tue, Jun 24, 2008 at 11:26 AM, Pawan Kumar
<email2pawankumar at gmail.com> wrote:
> HI Henrik,
>
> I can ping on 11211 port (telnet 192.168.1.31 11211) and also I can store
> and get data using basic commands using telnet.
> There is no firewall because the server is directly accessible from client
> machines.
>
> Actually it is working on some servers and some not. I think it has
> something to do with memcached server because sometimes memcached server is
> throwing exception for keys and sometimes returning the values back for
> those keys. Any idea why is this happenning?
>
> Thanks,
> Pawan
>
> On Tue, Jun 24, 2008 at 4:24 PM, Henrik Schröder <skrolle at gmail.com> wrote:
>>
>> Hi Pawan,
>>
>> So, neither client works when you try to access a remote memcached server,
>> but they all work when you access one on your local machine? Hm, this is a
>> hard one. I wonder what it could be...
>>
>> Have you verified that you can actually connect to the remote machine on
>> the port memcached is using? Are there any firewalls in the way? Can you
>> ping it? Can you telnet to port 11211 (or whatever port you configured) on
>> the remote server? If not - fix your network.
>>
>>
>> /Henrik Schröder
>>
>> On Tue, Jun 24, 2008 at 11:04 AM, Pawan Kumar <email2pawankumar at gmail.com>
>> wrote:
>>>
>>> Hi Henrik,
>>>
>>> Thanks for helping me out!
>>>
>>> I tried with BeITMemcached and EnyimMemcached.
>>> Funny thing is that if I run MemCached server on windows machine then all
>>> clients are able to access keys (whether present or not on the server)
>>> without "timeout" or exception. In case the keys are not present on server,
>>> clients are getting "false" response which it should.
>>>
>>> Thanks,
>>> Pawan
>>>
>>> On Tue, Jun 24, 2008 at 1:49 PM, Henrik Schröder <skrolle at gmail.com>
>>> wrote:
>>>>
>>>> Hi Pawan,
>>>>
>>>> Which client are you using?
>>>>
>>>>
>>>> /Henrik Schröder
>>>>
>>>> On Tue, Jun 24, 2008 at 9:58 AM, Pawan Kumar
>>>> <email2pawankumar at gmail.com> wrote:
>>>>>
>>>>> We are using memcached in our web application which is under
>>>>> development right now. The server with 5MB data size support is running on
>>>>> Linux server and all our clients are running on windows machines.
>>>>>
>>>>> I am facing the following problem:
>>>>>
>>>>> When I get the data value for a key just after setting the value I am
>>>>> getting success whereas after closing the client and trying to access the
>>>>> data value for the same key, I am getting timeout error.
>>>>>
>>>>> e.g. bool status = _memoryCache.Set("IntelliSearch-ab", <XML>); //
>>>>> <XML> is stored as String
>>>>>
>>>>>        String _xml = (String) _memoryCache.Get("IntelliSearch-ab");
>>>>>
>>>>>        // This is returning success
>>>>>
>>>>> Whereas, after restarting the client or trying to access from different
>>>>> client using
>>>>>
>>>>>             String _xml = (String)
>>>>> _memoryCache.Get("IntelliSearch-ab");
>>>>>
>>>>> I am getting "Timeout" error messages.
>>>>>
>>>>> Could you please suggestion what could be the reason for the same?
>>>>>
>>>>> Thanks in advance.
>>>
>>
>
>


More information about the memcached mailing list