http://mysqlserverteam.com/the-mysql-sys-schema-in-mysql-5-7-7/
目前sys schema中检查内存的表存在bug,已经在mysql 官网上提了。
Bug #84174 | memory_global_total in sys schema can not represent a real memory usage |
---|
网址:http://bugs.mysql.com/bug.php?id=84174
另外,这里统计的内存,并不是top显示的进程对应的内存,而是server层分配的内存。即server层malloc的时候,统计下。这个可以看下源码,是不是这样。