Timeout Occurred While Printing Memory Information

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 打印内存信息出现超时

| username: TiDBer_pkQ5q1l0

[Test Environment for TiDB]
[TiDB Version] v5.2.1
[Encountered Issue]


[Issue Phenomenon and Impact]
The TiDB node is consuming a lot of memory. I wanted to check which method is consuming the most, but found that memory printing timed out, as shown in the image.

| username: h5n1 | Original post link

How about removing the seconds?

| username: TiDBer_pkQ5q1l0 | Original post link

Removing it still times out.


| username: Min_Chen | Original post link

Hello, could you please check if the tidb-server service is functioning properly (through logs and monitoring)? Also, is the load on the tidb-server very high?

| username: TiDBer_jYQINSnf | Original post link

When using CURL, there are two timeout durations: one is the connection timeout, and the other is the maximum allowed time for data transfer.
The connection timeout is specified with the --connect-timeout parameter, and the maximum allowed time for data transfer is specified with the -m parameter.

curl --connect-timeout 10 -m 20 http://XXXXXXX