This project is read-only.

Please help, memcached on windows 2003

Jun 16, 2009 at 2:47 PM

Hi,

     I downloaded win 32 port and enyim .net client, works perfectly in windows xp but not working in windows server 2003. When i start memcached service, i am able to figure out that it is listenening at 127.0.0.1/11211(using port reporter).

    I investigated further by debugging the client code, and it goes into infinite loop(when trying to read from socket)

It keeps returning -1 in
   data = this.inputStream.ReadByte();
in PooledSocket.ReadLine()

Can anyone help please? Also benchmarked with velocity(nearly 1000ms faster).

Jun 16, 2009 at 5:45 PM

hi,

try this to see if firewall is blocking it on win 2003

:> telnet 127.0.0.1 11211

after that type

:>stats

see if this works.

- Fahad

Jun 17, 2009 at 11:14 AM
Edited Jun 17, 2009 at 11:39 AM

hi fahadaz,

        Thanks for the time, below are my observation

        1. When i start memcached.exe(win 32 port) it start listening at 0.0.0.0:11211, which is fair that it trying to accept connections from all interfaces.

        2. I am able to telnet into 127.0.0.1:11211, and netstat shows two entries. One is memcached to telnet and vice versa with status 'ESTABLISHED'

  Proto  Local Address          Foreign Address        State           PID
  TCP    0.0.0.0:11211          0.0.0.0:0              LISTENING       3260
  TCP    127.0.0.1:1973         127.0.0.1:11211        ESTABLISHED     4888
  TCP    127.0.0.1:11211        127.0.0.1:1973         ESTABLISHED     3260

        but still facing same problem. I am running this code in virtual machine and IPv6 is not enabled.

      Also below is the code(i am using Enyim.Caching 1.2.0.0)

 <?xml version="1.0" encoding="utf-8" ?>
<configuration>
 <configSections>
  <sectionGroup name="enyim.com">
   <section name="memcached" type="Enyim.Caching.Configuration.MemcachedClientSection, Enyim.Caching" />
  </sectionGroup>
 </configSections>
 <enyim.com>
  <memcached>
   <!-- keyTransformer="" -->
   <servers>
    <add address="127.0.0.1" port="11211" />
   </servers>
   <socketPool minPoolSize="10" maxPoolSize="100" connectionTimeout="00:10:00" deadTimeout="00:02:00" />
  </memcached>
 </enyim.com>
</configuration>

 my client code is

 

<font size="2" color="#2b91af"><font size="2" color="#2b91af">

MemcachedClient

</font></font><font size="2" color="#2b91af">

 

</font>

client = new MemcachedClient();<font size="2">

client.Store(

</font>

StoreMode.Add, "Startups", "Suresh", DateTime.Now.AddMinutes(20));

after executing the first line ' MemcachedClient client = new MemcachedClient();' i ran 'netstat' and able to see 10 connections established and i have mentioned the minPoolSize as 10.

I am really confused here, any pointers please?