i want to increase "open files limit mysql" to 2084. what are the commands to run through ssh?
Asked
Active
Viewed 2.0k times
2 Answers
3
To see the current limit, type:
ulimit -a
To check the limit for a particular user (I guess you would be interested in mysql
user), type:
su mysql ulimit -a
To increase/modify the limit, do:
vi /etc/security/limits.conf
and add:
mysql hard nofile 2084
mysql soft nofile 2084
Do the same for /etc/security/limits.d/90-nproc.conf
.
You can also temporary increase the open files limit for the user you're currently logged in with:
ulimit -Hn 2084

13dimitar
- 935
add this to your service section LimitNOFILE=infinity
– Mansur Ul Hasan Mar 14 '18 at 07:17