[MySQL] records an online fault handling process-& amp; gt; hasmorethan & amp;

Source: Internet
Author: User
[MySQL] records an online troubleshooting process -- failed: nestedexceptionisorg. apache. ibatis. exceptions. PersistenceException: ### Errorqueryingdatabase. Cause: or

[MySQL] records an online fault handling process -- has more than max_user_connections active connections org. mybatis. spring. myBatisSystemException: nested exception is org. apache. ibatis. exceptions. persistenceException: ### Error querying database. cause: or

[MySQL] records an online fault handling process --> has more than 'max _ user_connections 'active connections

Org. mybatis. spring. MyBatisSystemException: nested exception is org. apache. ibatis. exceptions. PersistenceException:

### Error querying database. cause: org. springframework. transaction. cannotCreateTransactionException: cocould not open JDBC Connection for transaction; nested exception is com. mysql. jdbc. exceptions. jdbc4.MySQLSyntaxErrorException: User NUXUSER already has more than 'max _ user_connections 'active connections

......

### Cause: org. springframework. transaction. cannotCreateTransactionException: cocould not open JDBC Connection for transaction; nested exception is com. mysql. jdbc. exceptions. jdbc4.MySQLSyntaxErrorException: User NUXUSER already has more than 'max _ user_connections 'active connections

......


The above is the email alarm information, and the application page reports the 500,503,504 error message.



1After receiving the call in the middle of the night, I immediately log on to the db and check the status of the 128 db node groups. I found that db00701 and db10201 had more than 2000 connections.


2 think of the two databases as if they were the db servers that had just maintained ssd last week. directly use ssh to get ahead and check ssh db00701


3After entering db00701, ps-eaf | grep mysql runs normally. Check the error log information and report frequent errors when writing binlog.


4Go to the binlog directory/data/binlog/and find that there are more than 100 binlogs under the Directory, which is more than five days long. How can this problem be solved, didn't a crontab task remove the binlog two days ago every day? Immediately crontab-l found that the task for removing the binlog was not enabled. Suddenly, I thought that the disk of the binlog directory would not be full, right?


5Run df-h to check whether/data/binlog/used is 100%. Then, manually remove the binlog. After 3 minutes, the application will be normal and the 5XX error will not be reported on the page, db00701 and db10201 connections are also normal.


There are two reasons to summarize the problem:

1. During this database db server switch, Uncle yamu's sa group did not add the binlog monitoring feature to the monitoring feature, so the disk was not promptly notified of alarms.

2. Our db Group does not have the double confirmed monitor in time.


It seems that you have to be more careful in the future.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.