akwei / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

Help:Can not get new set object on occasions, especially large access #338

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1、We use java_memcached-release_2.6.3 as client, and memcached-1.4.13, 
ibevent 2.0.19-stable as cached sever to cached java object class implements
Serializable.

2、 The problem is after few days or hours, cilent set some newly generated 
objects to memcached server, result is true, but get null. Then we can only 
restart memcached server to restore normal work.

3、We have tried to enlarge the memcached server start memory to 6144M, and 
socket numbers to 30720, result is no help.
./memcached -d -m 6144 -c 30720 -l 127.0.0.1 -p 12000
In addition, we have tried to changed client mode from ASCII to BINARY, also no 
help.

4、From the memcached server log , we get like this, which we can not 
understand while. Can anyone help?

And does symbol of "¬" means error? why some times sending result no length?

<33 get TRSGMJC_ci_customer2D63280F31F7BF796C598B93D6AF5C248.jvm1

    33 END
    <34 get TRSGMJC_ci_customer2B754127D616479FAC1701D891D348E89.jvm1
    34 sending key TRSGMJC_ci_customer2B754127D616479FAC1701D891D348E89.jvm11 0 920
    ¬
    34 END
    <34 get TRSGMJC_ls_AFE3D2F7D918D1CCD24A2928723371BA112.125.95.130
    34 sending key TRSGMJC_ls_AFE3D2F7D918D1CCD24A2928723371BA112.125.95.130
    34 END
    <34 get TRSGMJC_ls_AFE3D2F7D918D1CCD24A2928723371BA112.125.95.130
    34 sending key TRSGMJC_ls_AFE3D2F7D918D1CCD24A2928723371BA112.125.95.130
    34 END
    <34 delete TRSGMJC_ci_customer2B754127D616479FAC1701D891D348E89.jvm1
    34 DELETED
    <34 delete TRSGMJC_ls_AFE3D2F7D918D1CCD24A2928723371BA112.125.95.130
    34 DELETED
    <34 get TRSGMJC_lu_%E8%B5%B5%E4%B8%96%E5%BA%86
    34 sending key TRSGMJC_lu_%E8%B5%B5%E4%B8%96%E5%BA%86
    34 END
    <34 delete TRSGMJC_lu_%E8%B5%B5%E4%B8%96%E5%BA%86
    34 DELETED
    <35 get TRSGMJC_ci_customer2A6CB386E832B6503E9AC1DBCB0E6DF14.jvm1
    35 END
    <32 get TRSGMJC_ci_customer2D2AB156ECC6D893E3F5E917D7FF7EF8E.jvm1
    32 END
    <33 get TRSGMJC_ci_customer26E78EC90BAAD0F24FC8EE3D1C95F743C.jvm1
    33 END
    <34 get TRSGMJC_ci_customer2C2FC12CA4544C7C4B73DC98433F6A6AC.jvm1
    34 END
    <35 get TRSGMJC_ci_customer20AA6067566BF8FDC3A8E514A104AC920.jvm1
    35 END
    <32 get TRSGMJC_ci_customer2AC9A422BB281E578A37485FF60B3428D.jvm1
    32 END
    <33 get TRSGMJC_ci_customer288283C65BF3E5D715A80C734DDC490A0.jvm1
    33 END
    <34 get TRSGMJC_ci_customer2625ECFE1EF83CBB031E1A1048F446FD7.jvm1
    34 sending key TRSGMJC_ci_customer2625ECFE1EF83CBB031E1A1048F446FD7.jvm11 0 925
    ¬
    34 END
    <34 get TRSGMJC_ls_E8D331B3236FF66BE3225601802C0AFF112.125.95.130
    34 sending key TRSGMJC_ls_E8D331B3236FF66BE3225601802C0AFF112.125.95.130 0 925
    ¬
    34 END
    <34 get TRSGMJC_ls_E8D331B3236FF66BE3225601802C0AFF112.125.95.130
    34 sending key TRSGMJC_ls_E8D331B3236FF66BE3225601802C0AFF112.125.95.130 0 925
    ¬
    34 END
    <34 delete TRSGMJC_ci_customer2625ECFE1EF83CBB031E1A1048F446FD7.jvm1
    34 DELETED
    <34 delete TRSGMJC_ls_E8D331B3236FF66BE3225601802C0AFF112.125.95.130
    34 DELETED
    <34 get TRSGMJC_lu_%E7%8E%8B%E6%B3%A2111
    34 sending key TRSGMJC_lu_%E7%8E%8B%E6%B3%A2111
    34 END
    <34 delete TRSGMJC_lu_%E7%8E%8B%E6%B3%A2111
    34 DELETED

Original issue reported on code.google.com by sxj...@gmail.com on 20 Aug 2013 at 2:21

GoogleCodeExporter commented 9 years ago
Besides, from the memcached server log , most errors are 'Not found' related, 
which can say clearly that, object which are set can not get out.

Should we upgrade client or server version?

<32 GET TRSGMJC_as_DB7EEF2DE9CB65B4580926F002A5CD74112.125.95.132

    32 Writing an error: Not found
    32 Writing bin response:
    32 0x81 0x00 0x00 0x00
    32 0x00 0x00 0x00 0x01
    32 0x00 0x00 0x00 0x09
    32 0x00 0x00 0x00 0x00
    32 0x00 0x00 0x00 0x00
    32 0x00 0x00 0x00 0x00
    <32 Read binary protocol data:
    <32 0x80 0x01 0x00 0x39
    <32 0x08 0x00 0x00 0x00
    <32 0x00 0x00 0x02 0x93
    <32 0x00 0x00 0x00 0x00
    <32 0x00 0x00 0x00 0x00
    <32 0x00 0x00 0x00 0x00
    <32 SET TRSGMJC_as_DB7EEF2DE9CB65B4580926F002A5CD74112.125.95.132 Value len is 594
    32 Writing bin response:
    32 0x81 0x01 0x00 0x00
    32 0x00 0x00 0x00 0x00
    32 0x00 0x00 0x00 0x00
    32 0x00 0x00 0x00 0x00
    32 0x00 0x00 0x00 0x00
    32 0x00 0x03 0x05 0x0f
    <32 Read binary protocol data:
    <32 0x80 0x00 0x00 0x39
    <32 0x00 0x00 0x00 0x00
    <32 0x00 0x00 0x00 0x39
    <32 0x00 0x00 0x00 0x00
    <32 0x00 0x00 0x00 0x00
    <32 0x00 0x00 0x00 0x00
    <32 GET TRSGMJC_as_DB7EEF2DE9CB65B4580926F002A5CD74112.125.95.132
    32 Writing an error: Not found
    32 Writing bin response:
    32 0x81 0x00 0x00 0x00
    32 0x00 0x00 0x00 0x01
    32 0x00 0x00 0x00 0x09
    32 0x00 0x00 0x00 0x00
    32 0x00 0x00 0x00 0x00
    32 0x00 0x00 0x00 0x00
    <32 Read binary protocol data:
    <32 0x80 0x00 0x00 0x39
    <32 0x00 0x00 0x00 0x00
    <32 0x00 0x00 0x00 0x39
    <32 0x00 0x00 0x00 0x00
    <32 0x00 0x00 0x00 0x00
    <32 0x00 0x00 0x00 0x00

Original comment by sxj...@gmail.com on 20 Aug 2013 at 3:19

GoogleCodeExporter commented 9 years ago
I've no idea...

I have a new version coming out shortly, if for some reason you still need help 
with this, please upgrade to 1.4.16 and re-open a new ticket if you still have 
trouble.

Original comment by dorma...@rydia.net on 9 Dec 2013 at 3:09

GoogleCodeExporter commented 9 years ago
Thanks for all your focus, It seems to be the reason that we cached self 
desiged object class, which is complex and large. We have tried to transfer it 
to json string before set to memcached server. Up to now, it's ok. Thanks!

Original comment by sxj...@gmail.com on 9 Dec 2013 at 3:50