https://blog.csdn.net/n88Lpo/article/details/86216575

performance_schema = 1
performance_schema_instrument = "%memory%=on"

2、通过命令查询

select event_name,current_alloc from sys.memory_global_by_current_bytes 

MySQL 5.7 查看内存使用情况
    


            
MySQL运行内存不足时应采取的措施


相关文章: