From 9221eff607204febcfbda5f88fcc71c06174fcfb Mon Sep 17 00:00:00 2001 From: Feng Liyuan Date: Tue, 2 Jun 2020 17:48:33 +0800 Subject: [PATCH] cherry pick #3421 to release-4.0 Signed-off-by: sre-bot --- tidb-configuration-file.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tidb-configuration-file.md b/tidb-configuration-file.md index 490e7b4eda0a..1dc260409704 100644 --- a/tidb-configuration-file.md +++ b/tidb-configuration-file.md @@ -274,9 +274,9 @@ TiDB 配置文件比命令行参数支持更多的选项。你可以在 [config/ ### `max-memory` -+ TiDB 最大使用内存,单位为字节 ++ Prepare cache LRU 使用的最大内存限制。当 Prepare cache LRU 的内存使用超过 `performance.max-memory * (1 - prepared-plan-cache.memory-guard-ratio)` 时,会剔除 LRU 中的元素。 + 默认值:0 -+ 默认值 0 表示不受限制 ++ 这个配置只有在 `prepared-plan-cache.enabled` 为 `true` 的情况才会生效。当 LRU 的 size 大于 `prepared-plan-cache.capacity` 时,也会剔除 LRU 中的元素。 ### `txn-total-size-limit`