Skip to content

Commit 552dd6d

Browse files
authored
update the error message of OOM (#15735) (#15756)
1 parent ce14b1c commit 552dd6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

troubleshoot-tidb-oom.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The following are some typical OOM phenomena:
1919
- **TiDB-Runtime** > **Memory Usage** shows that the `estimate-inuse` metric keeps rising.
2020

2121
- Check `tidb.log`, and you can find the following log entries:
22-
- An alarm about OOM: `[WARN] [memory_usage_alarm.go:139] ["tidb-server has the risk of OOM. Running SQLs and heap profile will be recorded in record path"]`. For more information, see [`memory-usage-alarm-ratio`](/system-variables.md#tidb_memory_usage_alarm_ratio).
22+
- An alarm about OOM: `[WARN] [memory_usage_alarm.go:139] ["tidb-server has the risk of OOM because of memory usage exceeds alarm ratio. Running SQLs and heap profile will be recorded in record path"]`. For more information, see [`memory-usage-alarm-ratio`](/system-variables.md#tidb_memory_usage_alarm_ratio).
2323
- A log entry about restart: `[INFO] [printer.go:33] ["Welcome to TiDB."]`.
2424

2525
## Overall troubleshooting process
@@ -189,7 +189,7 @@ To locate the root cause of an OOM issue, you need to collect the following info
189189
- Run `grep "tidb-server has the risk of OOM" tidb.log` to check the path of the alert file collected by TiDB Server. The following is an example output:
190190
191191
```shell
192-
["tidb-server has the risk of OOM. Running SQLs and heap profile will be recorded in record path"] ["is tidb_server_memory_limit set"=false] ["system memory total"=14388137984] ["system memory usage"=11897434112] ["tidb-server memory usage"=11223572312] [memory-usage-alarm-ratio=0.8] ["record path"="/tmp/0_tidb/MC4wLjAuMDo0MDAwLzAuMC4wLjA6MTAwODA=/tmp-storage/record"]
192+
["tidb-server has the risk of OOM because of memory usage exceeds alarm ratio. Running SQLs and heap profile will be recorded in record path"] ["is tidb_server_memory_limit set"=false] ["system memory total"=14388137984] ["system memory usage"=11897434112] ["tidb-server memory usage"=11223572312] [memory-usage-alarm-ratio=0.8] ["record path"="/tmp/0_tidb/MC4wLjAuMDo0MDAwLzAuMC4wLjA6MTAwODA=/tmp-storage/record"]
193193
```
194194
195195
## See also

0 commit comments

Comments
 (0)