Bug #56418 | Could not set open-files-limit in multiple mysql instances. | ||
---|---|---|---|
Submitted: | 31 Aug 2010 18:24 | Modified: | 16 Sep 2010 5:56 |
Reporter: | Umang Gopani | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Options | Severity: | S2 (Serious) |
Version: | 5.1.47, 5.1.37 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | open-files-limit |
[31 Aug 2010 18:24]
Umang Gopani
[8 Sep 2010 0:13]
Umang Gopani
Any updates on this ?
[10 Sep 2010 21:34]
Sveta Smirnova
Thank you for the report. What `ulimit -a` for user you run mysqld as outputs?
[10 Sep 2010 23:00]
Umang Gopani
I have not set specific ulimit for mysql. So it must be using the system wide default ulimit of 1024. I have never set a ulimit for mysql instance on the other mysql instances running with 5.1 where I have set open-files-limit to 5000 and it has worked fine. It is only with this multiple mysql server instance , that I see this problem. So I am thinking ulimit should not be a problem.
[13 Sep 2010 18:14]
Sveta Smirnova
Thank you for the feedback. This is not a bug if ulimit reports you can have no more than 1024 open files.
[16 Sep 2010 5:56]
Umang Gopani
setting the ulimit (no of open files) for user root works. So the thing is open-files-limit takes directly the value of ulimit for root, irrespective of whatever is set in the config file. From test machine cat /etc/security/limits.conf |grep 15000 root hard nofile 15000 root soft nofile 15000 and I see mysql> show global variables like "open_files_limit"; +------------------+-------+ | Variable_name | Value | +------------------+-------+ | open_files_limit | 15000 | +------------------+-------+ 1 row in set (0.00 sec) I have set open-files-limit to 5000 for both the instances in config, still we see 15000 as the limit set.