-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
util: record sqls and heap profile when memory usage is higher than 80% system memory. (#18858) #20473
util: record sqls and heap profile when memory usage is higher than 80% system memory. (#18858) #20473
Conversation
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
/run-all-tests |
@wshwsh12 conflicts need to be resolved |
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@ti-srebot merge failed. |
Maybe need cherry-pick this pr .... #17532 |
This reverts commit 3f02736.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
record.isServerMemoryQuotaSet = true | ||
} else { | ||
// TODO: Get the memory info in container directly. | ||
record.serverMemoryQuota, record.err = memory.MemTotal() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about container environment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now the only way to use it is to set server-memory-quota config.
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
cherry-pick #18858 to release-4.0
What problem does this PR solve?
Issue Number: close #17095
Problem Summary:
When tidb-server is killed by system oom-killer, we have no information to investigate which SQL is suspect that consumes unexpected memory and causes process down.
What is changed and how it works?
Proposal: xxx
What's Changed:
How it Works:
Related changes
pingcap/docs
/pingcap/docs-cn
:Check List
Tests
Side effects
Release note