Memcache error : Object synchronization method was called from an unsynchronized block of code

Help
2013-05-31
2013-06-13
  • Hi,

    I am continuously getting the error through the dotnet client "Object synchronization method was called from an unsynchronized block of code" when the load on the memcache server increases.

    I have set the following default value for memcached connections:
    SockIOPool pool = SockIOPool.GetInstance();
    pool.SetServers(serverlist);

            pool.InitConnections = 20;
            pool.MinConnections = 20;
            pool.MaxConnections = maxConnections;
    
            pool.SocketConnectTimeout = 1000;
            pool.SocketTimeout = 3000;
    
            pool.MaintenanceSleep = 30;
            pool.Failover = true;
    
            pool.Nagle = false;
            pool.Initialize();
    

    Am I missing something. Please help.

     
    • Tim Gebhardt
      Tim Gebhardt
      2013-05-31

      This library has kind of been abandoned. Have you looked into AppFabric
      caching (formerly Velocity) if you're on the .NET stack? It's full
      featured and supported by MSFT.

      On Fri, May 31, 2013 at 9:21 AM, Shikhar Maheshwari <icoshikhar@users.sf.net

      wrote:

      Hi,

      I am continuously getting the error through the dotnet client "Object
      synchronization method was called from an unsynchronized block of code"
      when the load on the memcache server increases.

      I have set the following default value for memcached connections:
      SockIOPool pool = SockIOPool.GetInstance();
      pool.SetServers(serverlist);

          pool.InitConnections = 20;
          pool.MinConnections = 20;
          pool.MaxConnections = maxConnections;
      
          pool.SocketConnectTimeout = 1000;
          pool.SocketTimeout = 3000;
      
          pool.MaintenanceSleep = 30;
          pool.Failover = true;
      
          pool.Nagle = false;
          pool.Initialize();
      

      Am I missing something. Please help.

      Memcache error : Object synchronization method was called from an
      unsynchronized block of codehttps://sourceforge.net/p/memcacheddotnet/discussion/508313/thread/210608b1/?limit=50#3edd


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/memcacheddotnet/discussion/508313/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
      • Hi Tim,

        Thanks for the reply.

        Why does MemCached does not close the connection on it's own after the operation has been performed. What is the alternative client library that you would suggest for proper functioning - BeIT or Enyim or some other...

        Requesting prompt response...

        With Regards,

        Shikhar

         
        • Tim Gebhardt
          Tim Gebhardt
          2013-06-13

          Hi Shikhar,

          Sorry not to be of much help, but I haven't looked at this code base in a
          very long time. For the .NET world you're probably better off using the
          AppFabric cache that is more native and supported by MSFT for distributed
          caching. Otherwise if you're not keen on that I know that the
          StackOverflow team uses Redis for their caching scheme so that solution is
          well supported by the community. I'm just not very familiar with the
          projects you mentioned.

          On Mon, Jun 10, 2013 at 5:41 AM, Shikhar Maheshwari <icoshikhar@users.sf.net

          wrote:

          Hi Tim,

          Thanks for the reply.

          Why does MemCached does not close the connection on it's own after the
          operation has been performed. What is the alternative client library that
          you would suggest for proper functioning - BeIT or Enyim or some other...

          Requesting prompt response...

          With Regards,

          Shikhar

          Memcache error : Object synchronization method was called from an
          unsynchronized block of codehttps://sourceforge.net/p/memcacheddotnet/discussion/508313/thread/210608b1/?limit=50#3edd/bad6/ec43


          Sent from sourceforge.net because you indicated interest in
          https://sourceforge.net/p/memcacheddotnet/discussion/508313/

          To unsubscribe from further messages, please visit
          https://sourceforge.net/auth/subscriptions/