pwf1128 发表于 2016-9-22 18:00:11

[求助求助]ubuntu系统mysql最大连接数问题搞死人了

大伙帮忙看看,实在搞不定了,机房服务器mysql最大连接死活调不上去。
基于以下系统:linux:Ubuntu 16.04.1 LTS (GNU/Linux4.4.0-36-generic x86_64)mysql:5.7.15-0ubuntu0.16.04.1 /5.7.13-0ubuntu0.16.04.2-log
已经修改了以下文件:/etc/security/limits.conf:*                soft    nofile          65535*                hard    nofile          65535*                soft    nproc         65535*                hard    nproc         65535
/etc/profile:ulimit -SHn 65535
/lib/systemd/system/mysql.serviceLimitNOFILE=65535LimitNPROC=65535
mysql配置max_connections = 3000
改完所有参数之后1.mysql数据库查询最大连接是30002.ulimit -a命令查询 openfiles:65535、maxuser processes:65535
但是实际程序跑的过程中,最大连接只能取到485个,再取就开始报错:ERROR 1135: Can't create a new thread (errno 12). If you are not out of available memory, you can consult the manual for a possible OS-dependent bug

页: [1]
查看完整版本: [求助求助]ubuntu系统mysql最大连接数问题搞死人了