【问题标题】:An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full - wamp server由于系统缺乏足够的缓冲区空间或队列已满,无法对套接字执行操作 - wamp 服务器
【发布时间】:2013-05-12 17:23:22
【问题描述】:

我正在使用 PHP、Javascript 和 HTML5 创建一个基于浏览器的游戏,我正在本地 wamp 服务器上对其进行测试。但是有时我会收到以下错误:

 Warning: mysqli::mysqli(): (HY000/2002): An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full. 

它在屏幕上闪烁(如 SCREAM 错误)然后消失。它不会影响应用程序的功能,但有时它可以在屏幕上停留长达 5-10 秒。我提到我正在使用大量 AJAX 请求来操作数据库中的修改,最值得注意的是我有一个读取设置为 2 秒的 svg 映射的计时器。我在 my.ini(mysql 配置文件)中找到了以下几行。我应该尝试修改其中的一些值吗?

# The MySQL server
[wampmysqld]
port        = 3306
socket      = /tmp/mysql.sock
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
basedir=c:/wamp/bin/mysql/mysql5.5.24
log-error=c:/wamp/logs/mysql.log
datadir=c:/wamp/bin/mysql/mysql5.5.24/data

或者我应该看看 php.ini 文件?另外,我在 Windows 7 上运行 wamp 服务器。

【问题讨论】:

    标签: mysql sockets memory configuration wamp


    【解决方案1】:
    猜你喜欢
    • 1970-01-01
    • 2014-12-12
    • 2011-05-23
    • 2011-02-11
    • 1970-01-01
    • 1970-01-01
    • 2013-06-14
    • 1970-01-01
    • 2015-12-18
    相关资源
    最近更新 更多