Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate config item max-memory and add items server-memory-quota and memory-usage-alarm-ratio #4977

Merged
merged 24 commits into from
Dec 2, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
address commet
  • Loading branch information
wshwsh12 committed Dec 2, 2020
commit 82fac32a4d2f585c423a9c42d9bdc791270bc504
4 changes: 1 addition & 3 deletions configure-memory-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ memory-usage-alarm-ratio = 0.8

4. 检查 `tidb.log` 文件,其中会记录系统总内存、系统当前内存使用量、tidb-server 实例的内存使用量以及状态文件所在目录。

{{< copyable "sql" >}}

```sql
```
[2020/11/30 15:25:17.252 +08:00] [WARN] [memory_usage_alarm.go:141] ["tidb-server has the risk of OOM. Running SQLs and heap profile will be recorded in record path"] ["is server-memory-quota set"=false] ["system memory total"=33682427904] ["system memory usage"=27142864896] ["tidb-server memory usage"=22417922896] [memory-usage-alarm-ratio=0.8] ["record path"="/tmp/1000_tidb/MC4wLjAuMDo0MDAwLzAuMC4wLjA6MTAwODA=/tmp-storage/record"]
wshwsh12 marked this conversation as resolved.
Show resolved Hide resolved
wshwsh12 marked this conversation as resolved.
Show resolved Hide resolved
```

Expand Down