Bug #71733 | I cannot get result of performance_schema.socket_instances | ||
---|---|---|---|
Submitted: | 16 Feb 2014 6:39 | Modified: | 21 Feb 2014 4:24 |
Reporter: | 徹 赤松 | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Performance Schema | Severity: | S3 (Non-critical) |
Version: | 5.7.3 | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | m_version_state, performance_schema, pfs->m_lock.is_populated(), socket_instances |
[16 Feb 2014 6:39]
徹 赤松
[17 Feb 2014 8:31]
MySQL Verification Team
Hi, Thank you for the report. Imho this is not a bug, because the socket_instances table relies on PERFORMANCE_SCHEMA instrumentation which is not on by default. May be if you can enable it at run time(see update in below test) or at start up(–performance_schema_instrument=wait/io/socket/sql/client_connection=counted )? Could you check and confirm? mysql> select * from performance_schema.setup_instruments where name LIKE '%socket%'; +--------------------------------------------------+---------+-------+ | NAME | ENABLED | TIMED | +--------------------------------------------------+---------+-------+ | wait/synch/mutex/sql/LOCK_socket_listener_active | NO | NO | | wait/synch/cond/sql/COND_socket_listener_active | NO | NO | | wait/io/socket/sql/server_tcpip_socket | NO | NO | | wait/io/socket/sql/server_unix_socket | NO | NO | | wait/io/socket/sql/client_connection | NO | NO | +--------------------------------------------------+---------+-------+ mysql> select * from performance_schema.socket_instances; Empty set (0.00 sec) // Update at runtime mysql> UPDATE performance_schema.setup_instruments -> SET enabled = 'YES' -> WHERE name LIKE 'wait/io/socket/sql/client_connection'; Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0 mysql> select * from performance_schema.socket_instances; Empty set (0.00 sec) mysql> \q Bye // Try with new connection mysql-5.7.4]# bin/mysql -uroot -p -S /tmp/master/mysql.sock Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 4 .. mysql> select * from performance_schema.socket_instances; +--------------------------------------+-----------------------+-----------+-----------+----+------+--------+ | EVENT_NAME | OBJECT_INSTANCE_BEGIN | THREAD_ID | SOCKET_ID | IP | PORT | STATE | +--------------------------------------+-----------------------+-----------+-----------+----+------+--------+ | wait/io/socket/sql/client_connection | 45105216 | 23 | 33 | | 0 | ACTIVE | +--------------------------------------+-----------------------+-----------+-----------+----+------+--------+ 1 row in set (0.00 sec)
[20 Feb 2014 20:20]
徹 赤松
Dir Umesh Umesh, thank you.