Skip to content

Problem with Aborted_clients  #794

@teacplusplus

Description

@teacplusplus

I have a problem with mysql2 gem 0.3.21 with ever-increasing Aborted_clients values. My rails version is 3.2.22.
sudo mysql -e "SHOW GLOBAL STATUS LIKE 'aborted_clients'";
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| Aborted_clients | 260 |
+-----------------+-------+

>> Mysql2::Client.new(host: "localhost", username: "root").close
>> Mysql2::Client.new(host: "localhost", username: "root").close
>> Mysql2::Client.new(host: "localhost", username: "root").close

sudo mysql -e "SHOW GLOBAL STATUS LIKE 'aborted_clients'";
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| Aborted_clients | 263 |
+-----------------+-------+
It brings a lot of problems such as big log file and sadness my boss.
Our project has a lot of db requests.
I can not use a different version of rails, since it is associated with long-term project migration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions