MySQL Forums
Forum List  »  General

Problem with max_open_files, max_connections and table_cache values
Posted by: josé renato milanez
Date: September 04, 2014 06:43AM

Hello friends, how are you?

I'm setting up a Red Hat Enterprise 7 with MySQL 5.6.20 Community, but I have problems with max_open_files, max_connections and table_cache values. I already changed it at /etc/security/limits.conf, but after reboot, I'm still getting the warning below. Even if I change the nofile at limits.conf file, I'm still gettin this error.

140904 09:37:25 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
2014-09-04 09:37:25 7158 [Warning] Buffered warning: Could not increase number of max_open_files to more than 1024 (request: 50000)

2014-09-04 09:37:25 7158 [Warning] Buffered warning: Changed limits: max_connections: 214 (requested 1000)

2014-09-04 09:37:25 7158 [Warning] Buffered warning: Changed limits: table_cache: 400 (requested 20000)

2014-09-04 09:37:25 7158 [Note] Plugin 'FEDERATED' is disabled.
2014-09-04 09:37:25 7158 [Note] InnoDB: Using atomics to ref count buffer pool pages
2014-09-04 09:37:25 7158 [Note] InnoDB: The InnoDB memory heap is disabled
2014-09-04 09:37:25 7158 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2014-09-04 09:37:25 7158 [Note] InnoDB: Memory barrier is not used
2014-09-04 09:37:25 7158 [Note] InnoDB: Compressed tables use zlib 1.2.3
2014-09-04 09:37:25 7158 [Note] InnoDB: Using Linux native AIO
2014-09-04 09:37:25 7158 [Note] InnoDB: Using CPU crc32 instructions
2014-09-04 09:37:25 7158 [Note] InnoDB: Initializing buffer pool, size = 36.0G
2014-09-04 09:37:27 7158 [Note] InnoDB: Completed initialization of buffer pool
2014-09-04 09:37:27 7158 [Note] InnoDB: Highest supported file format is Barracuda.
2014-09-04 09:37:28 7158 [Note] InnoDB: 128 rollback segment(s) are active.
2014-09-04 09:37:28 7158 [Note] InnoDB: Waiting for purge to start
2014-09-04 09:37:28 7158 [Note] InnoDB: 5.6.20 started; log sequence number 1626024
2014-09-04 09:37:28 7158 [Note] Server hostname (bind-address): '*'; port: 3306
2014-09-04 09:37:28 7158 [Note] IPv6 is available.
2014-09-04 09:37:28 7158 [Note] - '::' resolves to '::';
2014-09-04 09:37:28 7158 [Note] Server socket created on IP: '::'.
2014-09-04 09:37:28 7158 [Note] Event Scheduler: Loaded 0 events
2014-09-04 09:37:28 7158 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.6.20-log' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL)

My limits.conf:

#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4
* soft nofile 65535
* hard nofile 70000
mysql soft nofile 65535
mysql hard nofile 70000

Options: ReplyQuote


Subject
Written By
Posted
Problem with max_open_files, max_connections and table_cache values
September 04, 2014 06:43AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.