我使用MariaDB 10.x运行在Ubuntu16.10 (yakkety )上,并经历了与https://serverfault.com/questions/791729/ubuntu-16-04-server-mysql-open-file-limit-wont-go-higher-than-65536完全相同的问题,只有一个例外,我的开放文件限制是16364
cat /proc/$(pgrep mysql)/limits | grep files
Max open files 16364 16364 files
grep -Ri 'open_files_limit' /etc/mysql/
/etc/mysql/my.cnf:open_files_limit = 1024000
/etc/mysql/my.cnf:open_files_limit = 1024000和
cat /proc/sys/fs/file-max 3269904
su mysql --shell /bin/bash --command "ulimit -n" 1024000我已经搜索了很多,并且遵循了这个指南,但是没有什么能改变“最大打开文件”的限制:
有没有人知道答案,或者能帮上忙?
发布于 2017-03-01 18:28:34
感谢@jerichorivera在这里写了答案https://serverfault.com/a/833909
16K是LimitNOFILE用于MariaDB的限制,因此您可能希望在systemd服务定义中增加这一点。有关详细信息,请参阅以下页面:https://mariadb.com/kb/en/mariadb/systemd/
https://askubuntu.com/questions/885428
复制相似问题