User perf_inventory already has more than 'max _ user_connections 'active connections

Source: Internet
Author: User

Caused by: COM. MySQL. JDBC. Exceptions. jdbc4.mysqlsyntaxerrorexception: User perf_inventory already has more than 'max _ user_connections'
Active connections indicates that the user has reached the maximum number of connections and cannot connect to more connections.
Max_connections
The maximum number of connections is provided for an instance. What if there are more connections?
mysql> show variables like "%connections";          +----------------------+-------+| Variable_name        | Value |+----------------------+-------+| max_connections      | 3000  || max_user_connections | 0     |+----------------------+-------+
mysql> select @@max_user_connections;+------------------------+| @@max_user_connections |+------------------------+|                      0 |+------------------------+

How can I check how many connections a user has used?

Mysql> show full processlist; # view User + ---- + ------ + ----------------- + ------ + --------- + ------ + ------- + ----------------------- + | ID | user | host | dB | command | time | state | info | + ---- + ------ + ----------------- + ------ + --------- + ------ + ------- + --------------------- + | 4 | root | localhost: 65325 | null | query | 1 | null | show full processlist | + ---- + ------ + ----------------- + ------ + --------- + ------ + ------- + ----------------------- + 1 row in SET (0.06 Sec) mysql> show processlist; + ---- + ------ + --------------- + ------ + --------- + ------ + ------- + ------------------- + | ID | user | host | dB | command | time | state | info | + ---- + ------ + ----------------- + ------ + --------- + ------ + ------- + ----------------- + | 4 | root | localhost: 65325 | null | query | 0 | null | show processlist | + ---- + ------ + ----------------- + ------ + --------- + ------ + ------- + --------------------- +


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.