However, software resource restrictions do not change much, especially process/file, which correspond to nproc and nofile respectively.
Nproc can be queried by ulimit-u; nofile can be queried by ulimit-n.
Here, we will introduce/etc/security/limits. d/90-nproc.conf after kernel 2.6.32.
This means that the configuration of the file in/etc/security/limits. d/overwrites the configuration of/etc/security/limits. conf.
Most configuration files with hardware and software restrictions are located at:/etc/security/limits. conf
For example, modify the fd (file handle) restriction.
* Soft nofile NNNNN
* Hard nofile NNNNN
Confirm modification: ulimit-Hn; ulimit-Sn
Dear masters, is there a way to modify the maximum nproc parameter of mysql users without restarting the database! Error message: Can't create a new thread (errno 11); of course, at the beginning of the project, the system's ulimit, program connections, and so on will certainly be modified; but this is in case of emergency: currently, the solution is as follows: 1. Disable an ip connection in iptables. 2. Disable tcpkill to kill useless tcp connections. After connecting to mysql, modify the max_connection <nproc parameter; is it possible to modify the maximum nproc of mysql users without restarting the database!
MySQL runs in thread mode, and the number of threads is also counted in nproc, which may mask or cause false positives.