码迷,mamicode.com
首页 > 数据库 > 详细

MYSQL 5.6版本占用内存高的问题

时间:2020-04-03 13:55:41      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:关闭   nts   cto   创建数据库   监控   问题   size   handles   nec   

Mysql5.6.28-log版本,再创建数据库导入大量表以后,重启启动,16G内存几乎占满.

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   

原文地址:https://blog.51cto.com/8026776/2484627

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!