Home > Database > Mysql Tutorial > MySQL 用户并发数限制问题解决

MySQL 用户并发数限制问题解决

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:35:05
Original
1563 people have browsed it

对MySQL进行并发测试过程中遇到的一个小问题,记录一下。 用mysqlslap进行并发访问测试,在1024线程的时候报错: bin/mysqlslap: Error when connecting to server: 1135 Can't create a new thread (errno 11); if you are not out of available memory, yo

对MySQL进行并发测试过程中遇到的一个小问题,记录一下。

用mysqlslap进行并发访问测试,在1024线程的时候报错:

bin/mysqlslap: Error when connecting to server: 1135 Can't create a new thread (errno 11); if you are not out of available memory, you can consult the manual for a possible OS-dependent bug

Linux系统的open files数已经修改。当然仍然报错。ulimit -a命令,可查看当前系统限制情况

max user processes = 1024


通过ulimit -u 10000命令修改当前session的限制值,然后重启MySQL,问题解决。如果你想使此值永久生效,可配置在/etc/profile 中。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template