【问题标题】:Doctrine Memcache::get() generates: Failed reading line from stream (0) ExceptionDoctrine Memcache::get() 生成:Failed reading line from stream (0) 异常
【发布时间】: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


【解决方案1】:

迁移到具有完全相同软件规格的不同生产机器解决了这个问题。

我们得出的内部结论是这个问题是由硬件问题引起的。

【讨论】:

    猜你喜欢
    • 2014-01-22
    • 2011-08-30
    • 1970-01-01
    • 2021-11-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多