最初使用cmemcache是为了速度,但是使用cmemcache中间出现了很多错误

python foo.py > foo.log

1,如果关闭了memcahed,则会导致运行的脚本退出
[FATAL@1270652735.543860] mcm_server_send_cmd():2706: failed to send command to the memcache server: Broken pipe: Broken pipe

2,运行时间长了后出现

但是实际上状态应该是正常的

WARN@1270652729.675463] mcm_server_readable():2582: timeout: Operation now in progress: select(2) call timed out for read(2)able fds
[INFO@1270652730.818440] mcm_get_line():1592
[WARN@1270652732.818742] mcm_server_readable():2582: timeout: Operation now in progress: select(2) call timed out for read(2)able fds
[INFO@1270652732.818905] mcm_get_line():1592
[WARN@1270652734.820281] mcm_server_readable():2582: timeout: Operation now in progress: select(2) call timed out for read(2)able fds
[INFO@1270652734.820450] mcm_get_line():1592
[ERROR@1270652735.542325] mcm_buf_read():361: read(2) failed: Operation now in progress: server unexpectedly closed connection
[FATAL@1270652735.542407] mcm_get_line():1600: internal memcache(3) assertion: Operation now in progress

3,有时候会出现把操作结果直接打印的情况

END
STORED
END
STORED
VALUE yumianasfdmantou@sina.com 2 1
1
END
STORED
VALUE youchonasfg911@sina.com 2 1
1
END
STORED
END
STORED
VALUE opdn1asadfdfefz16@sina.com 2 1
1
END
STORED
END
STORED
END
STORED
VALUE do2222ngd22adfb22@sina.com 2 1
1
END
STORED
VALUE ts2_22sf2zhw@sina.com 2 1
1
END
STORED
END
STORED
VALUE me22ngfei28s006@sina.com 2 1
1
END
STORED
END
STORED
VALUE lizuf22a532sdf28@sina.com 2 1
1
END
STORED
END