Hello
Database start correct but not use limitation for class mysql (e.g. open_files_limit: should be 18000): instead using default class (now 8000, def. 2000).
FreeBSD 11.2-RELEASE-p3
mariadb103-server-10.3.8_2
/etc/rc.conf
/etc/login.conf
limits -U mysql
User mysql data:
When I check:
In my.cnf
Do you have any idea how to force Mariadb to apply class limits?
Once, on older Freebsd and MySQL it worked correctly.
Thank you for your time.
Best Regards.
Database start correct but not use limitation for class mysql (e.g. open_files_limit: should be 18000): instead using default class (now 8000, def. 2000).
FreeBSD 11.2-RELEASE-p3
mariadb103-server-10.3.8_2
/etc/rc.conf
Code:
mysql_enable="YES"
mysql_limits="YES"
/etc/login.conf
Code:
mysql:\
:charset=UTF8:\
:lang=pl_PL.UTF8:\
:cputime=8h:45m:\
:datasize=6G:\
:vmemoryuse=6G:\
:stacksize=30M:\
:memorylocked=64M:\
:memoryuse=6G:\
:coredumpsize=0:\
:maxproc=128:\
:filesize=32G:\
:openfiles=18000:\
:tc=default:
limits -U mysql
Code:
Resource limits for class mysql:
cputime 28800 secs
filesize 33554432 kB
datasize 6291456 kB
stacksize 30720 kB
coredumpsize 0 kB
memoryuse 6291456 kB
memorylocked 65536 kB
maxprocesses 128
openfiles 18000
sbsize infinity bytes
vmemoryuse 6291456 kB
pseudo-terminals infinity
swapuse infinity kB
kqueues infinity
umtxp infinity
User mysql data:
Code:
Uid [#]: 88
Gid [# or name]: 88
Class: mysql
Home directory: /var/db/mysql
Shell: /usr/sbin/nologin
When I check:
Code:
mysqladmin -uroot -p variables | grep open_files
| innodb_open_files | 3960
| open_files_limit | 8000
In my.cnf
Code:
[mysqld_safe]
open_files_limit = 6001
[mysqld]
open_files_limit = 6000
Do you have any idea how to force Mariadb to apply class limits?
Once, on older Freebsd and MySQL it worked correctly.
Thank you for your time.
Best Regards.