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 at http://gijsbert.org/downloads/cmemcache/ did not work
for me - the resulting library caused different crashes when importing
cmemcache
- this one at 
https://svn.pardus.org.tr/pardus/devel/programming/libs/libmemcache/files/
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