I had the same issues with cmemcached 0.95 under load:

http://groups.google.com/group/memcached/browse_thread/thread/32b1cc01776e3550/7d2bc80322506188?hl=en&lnk=gst&q=django#7d2bc80322506188

No issue with python-memcached.  cmemcached 0.95 seems to be unstable
under load.



On Jul 9, 3:48 pm, James <[email protected]> wrote:
> Confirmed.  python-memcached does not exhibit this issue.
>
> I read on another list that downgrading to cmemcache 0.91 addresses
> the issue as well.  Were I a little more adept, I'd take a stab at
> addressing the issue in cmemcache (or would it be libmemcached?)...
>
> Thanks,
> James
>
> On Jul 9, 3:09 pm, James <[email protected]> wrote:
>
> > Has anyone managed to get cmemcache to work with Django via Apache/
> > mod_wsgi under load?
>
> > This is somewhat disappointing:
>
> > mcm_fetch_cmd():1157: memcache(4) protocol error: protocol, expected a
> > response
> > mcm_get_line():1545: memcache(4) protocol error: no \r before \n
>
> > memcached 1.2.8
> > cmemcache 0.95
> > libmemcache_1.4.0-rc2
>
> > For libmemcache, I tried applying two different patches:
>
> > - this one athttp://gijsbert.org/downloads/cmemcache/didnot work
> > for me - the resulting library caused different crashes when importing
> > cmemcache
> > - this one 
> > athttps://svn.pardus.org.tr/pardus/devel/programming/libs/libmemcache/f...
> > addressed the cmemcache import crashes, but the root issue still
> > exists.
>
> > I suppose I should just fall back to python-memcache as well.  I will
> > try that now and see what the result is.
>
> > James
>
> > On May 12, 9:26 am, Zagor <[email protected]> wrote:
>
> > > FYI for any future souls that might run into this.
>
> > > The version ofmemcacheand c based libmemcache library we had did not
> > > work nice together.  We ended up using python-memcacheapproach and it
> > > seems to work fine now.
>
> > > On Apr 23,4:55 pm, Zagor <[email protected]> wrote:
>
> > > > I am getting anerrormessage when usingmemcachewith django + apache
> > > > under some load.  When I test the server in isolation it works fine,
> > > > but as soon as it is exposed any load it fills the apache log with
> > > >errormessages and revs the CPU to the max until I reboot.
>
> > > > Here is theerrorfrom apache log:
>
> > > > ....
> > > > [[email protected]] mcm_fetch_cmd():1176:memcache(4)protocol
> > > >error: Resource temporarily unavailable: server sent data for key not
> > > > in request
> > > > ...
> > > > [[email protected]] mcm_get_line():1542:memcache(4)protocol
> > > >error: no \r before \n
> > > > [[email protected]] mcm_get_line():1542:memcache(4)protocol
> > > >error: no \r before \n
> > > > [[email protected]] mcm_fetch_cmd():1154:memcache(4)protocol
> > > >error:protocol, expected a response
> > > > ....
>
> > > > Does anyone have any advice or thoughts how to fix this? Google-ing
> > > > didn't yield and luck so far.
>
> > > > Thanks
>
> > > > PS:
> > > > Usingmemcache1.2.8

Reply via email to