PHP - 内存缓存随机失败 - 无法分配请求的地址 (99)

PHP - memcache randomly fails with - Cannot assign requested address (99)

我更改了我的缓存系统(它使用了更多缓存)并升级到PHP 7.1。现在不时(大约 1 运行 out of 5)我在内存缓存中遇到了这个错误:

Notice: Memcache::connect(): Server 127.0.0.1 (tcp 11211, udp 0) failed with: Cannot assign requested address (99) 

Warning: Memcache::connect(): Can't connect to 127.0.0.1:11211, Cannot assign requested address (99) 

是什么原因造成的,为什么只是有时?到目前为止我没有问题 这个和在本地主机上,一切都是 运行ning OK。

该错误可能意味着您打开和关闭连接的速度太快,以至于 TCP 没有更多可用端口来创建下一个连接。

查看您的 memcached 客户端是否设置了 "pool" 个连接,以便它们保持打开状态。