时间:2021-07-01 10:21:17 帮助过:74人阅读
5.6.28 有对应performance_schema 性能监控模块(估计是5.6.28的bug)
5.6.40 performance_schema 模块启用可正常使用
可以尝试通过调整 performance_schema的对应参数来调试
参考 5.6.40的参数修改
performance_schema_accounts_size =100
performance_schema_digests_size =5000
performance_schema_events_stages_history_long_size =1000
performance_schema_events_stages_history_size =10
performance_schema_events_statements_history_long_size =1000
performance_schema_events_statements_history_size =10
performance_schema_events_waits_history_long_size =1000
performance_schema_events_waits_history_size =10
performance_schema_hosts_size =100
performance_schema_max_cond_classes =80
performance_schema_max_cond_instances =1382
performance_schema_max_digest_length =1024
performance_schema_max_file_classes =50
performance_schema_max_file_handles =32768
performance_schema_max_file_instances =2557
performance_schema_max_mutex_classes =200
performance_schema_max_mutex_instances =5755
performance_schema_max_rwlock_classes =40
performance_schema_max_rwlock_instances =3138
performance_schema_max_socket_classes =10
performance_schema_max_socket_instances =230
performance_schema_max_stage_classes =150
performance_schema_max_statement_classes =168
performance_schema_max_table_handles =616
performance_schema_max_table_instances =684
performance_schema_max_thread_classes =50
performance_schema_max_thread_instances =288
performance_schema_session_connect_attrs_size =512
performance_schema_setup_actors_size =100
performance_schema_setup_objects_size =100
performance_schema_users_size =100
如果不使用 可直接关闭
performance_schema=off
关闭后 内存占用极少.
MYSQL 5.6版本占用内存高的问题
标签:关闭 nts cto 创建数据库 监控 问题 size handles nec