简体   繁体   English

无法执行套接字操作,因为系统缺少足够的缓冲区空间或队列已满-WAMP服务器

[英]An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full - wamp server

I am creating a browser-based game using PHP,Javascript and HTML5 and I am testing it on a local wamp server. 我正在使用PHP,Javascript和HTML5创建基于浏览器的游戏,并正在本地wamp服务器上对其进行测试。 However sometimes I get the following error: 但是有时我会收到以下错误:

 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. 

It flashes on the screen (like a SCREAM error) and then dissapears. 它在屏幕上闪烁(如SCREAM错误),然后消失。 It doesn't affect the functionality of the application, but sometimes it can stay up to 5-10s on the screen. 它不会影响应用程序的功能,但是有时它可以在屏幕上停留5-10秒钟。 I mention that I am using a lot of AJAX requests to operate modifications in the database, the most notable one being the fact that i have a timer that reads the svg map set at 2s. 我提到我正在使用许多AJAX请求来操作数据库中的修改,最值得注意的一个事实是我有一个计时器,该计时器读取设置为2s的svg映射。 I found the following lines in the my.ini (mysql configuration file). 我在my.ini(mysql配置文件)中找到了以下几行。 Should I try to modify some of these values? 我应该尝试修改其中一些值吗?

# 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

Or perhaps I should take a look in the php.ini file? 还是我应该看看php.ini文件? Also, I am running the wamp server on Windows 7. 另外,我正在Windows 7上运行wamp服务器。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 警告:mysqli_connect():由于系统缺少缓冲区空间,因此无法在套接字上执行操作 - warning : mysqli_connect() : an operation on the socket cannot be performed because system lacked buffer space 由于Avast,wamp的SQL Server被阻止 - SQL Server of wamp is blocked because of Avast #2002-无法建立连接,因为目标计算机主动拒绝了该连接。 Wamp服务器 - #2002 - No connection could be made because the target machine actively refused it. Wamp Server XAMPP和Windows一次又一次出现错误“无法在套接字上执行操作…” - Getting error “An operation on a socket could not be performed…” with XAMPP and Windows again and again 无法建立连接,因为目标机器主动拒绝(PHP / WAMP) - No connection could be made because the target machine actively refused it (PHP / WAMP) / var目录已满,因为mysql? - /var directory is full because mysql? 无法在WAMP中启动MySQL服务器 - Could not start MySQL server in WAMP 消息队列异常:队列不存在或您没有足够的权限执行操作 - Message Queue Exception : Queue does not exist or you do not have sufficient permissions to perform the operation 由于“java.sql.SQLNonTransientConnectionException:无法创建与数据库服务器的连接”,无法连接到 mysql 服务器 - Unable to connect to mysql server because of "java.sql.SQLNonTransientConnectionException: Could not create connection to database server" MySQL REPAIR TABLE由于空间问题而停止 - MySQL REPAIR TABLE stalled because of space issue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM