这些变量可能相关:
table_open_cache
table_open_cache_instances
table_definition_cache
schema_definition_cache (new in 8.0)
tablespace_definition_cache (new in 8.0)
每个缓存都是固定大小的,可在启动时配置。(在某些情况下,在较新的版本上,它可以动态更改。)的文档
5.7
比如说
table_open_cache
是“动态的”
这些全局状态值可能相关:
Open_table_definitions
Opened_table_definitions
Opened_tables
Opened_files
Table_open_cache_hits
Table_open_cache_misses
Table_open_cache_overflows
命中/未命中/溢出为您提供了关于
表缓存
足够大,但不是最佳尺寸。
在5.7及之前版本中,数据字典来自
.frm
分散在磁盘上的文件。在8.0中,它位于一组InnoDB表中。据推测,一个合适的查询可以提供一些相关的度量。
也可以看到像
performance_schema_max_table_handles
.