【发布时间】:2015-05-03 16:08:37
【问题描述】:
我有一个 laravel 4/Doctrine 2 应用程序,它随机(每天 20 次)生成以下错误:
Memcache::get(): Server 127.0.0.1 (tcp 11211) failed with: Failed reading line from stream (0)
除了多年前提出的这个问题之外,Google 和官方文档没有透露任何内容:Memcache error: Failed reading line from stream (0) Array
这个问题对我没有多大帮助,因为在我的情况下,我没有最大化最大连接或可用缓存。
我的环境如下:
- PHP 5.5.22
- MySQL 5.5.41
- Laravel 4.0.1
- 教义2
在过去的 5 天内,此错误发生了 126 次,但我在 Memcache 统计信息中看不到任何问题。它们如下所示:
STAT uptime 543029
STAT version 1.4.4
STAT pointer_size 64
STAT get_hits 25191524
STAT get_misses 276599
STAT limit_maxbytes 1073741824
STAT listen_disabled_num 0
STAT evictions 0
【问题讨论】:
-
作为附加说明:在我的应用程序中,我让 Doctrine 使用
->useResultCache(true,300)语句来处理缓存。 Doctrine 被配置为在localhost:11211使用内存缓存。
标签: php mysql doctrine-orm memcached