Click here to Skip to main content
15,886,753 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
mysql is consuming more than 100% memory which leading to server crash and data loss. and at the same time when cpu usage is more i am getting following exception while trying to access database

Authentication to host '127.0.0.1' for user 'admin' using method 'mysql_native_password' failed with message: User admin already has more than 'max_user_connections' active connections

please can anybody look into this,any suggestion appreciated
Posted
Updated 8-Oct-15 2:49am
v2
Comments
Vibhav Ramcharan 8-Oct-15 7:36am    
I recommend trying the following:
1. Increase "Key Buffer", this should help immediately.
2. Run "mysqloptimize" and "mysqlrepair" on your tables
3. Increase table cache
4. Other recommended configuration options:
4.1 log_slow_queries = /var/log/mysql/mysql-slow.log (http://dev.mysql.com/doc/refman/5.0/en/slow-query-log.html)
4.2 long_query_time = 4
4.3 log-queries-not-using-indexes
5. switch off of persistent connections in PHP
Maciej Los 8-Oct-15 15:39pm    
Are you sure that cpu is laden more than 100%?
Sergey Alexandrovich Kryukov 8-Oct-15 15:48pm    
Laden? Or perhaps it was bin laden — please see my comment below... :-)
—SA
Maciej Los 8-Oct-15 15:49pm    
I wasn't sure which word is the best int this context.
Sergey Alexandrovich Kryukov 8-Oct-15 15:53pm    
It was just a pun... :-)
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900