Bug #64082
closedWhen I set debug_mgr 30/30, the memory of ceph-mgr will keep rising
0%
Description
This is an inevitable question,I did the following operations.
1.Collects heap information
ceph tell mgr.HOSTNAME heap start_profiler (Not supported by default, I added it myself)
ceph tell mgr.HOSTNAME heap dump
2.Processes heap files
pprof --pdf /home/zhangbo/ceph-mgr /var/log/ceph/mgr.node149.profile.0002.heap >test.heap.pdf
See the attachment for the test.heap.pdf
3.Compare the data from two samplings, with an interval of about 2 hours.
pprof --pdf --base /var/log/ceph/mgr.node149.profile.0004.heap /home/zhangbo/ceph-mgr /var/log/ceph/mgr.node149.profile.0050.heap > test.compare.pdf
See the attachment for the test.compare.pdf
I tested the above on 14.2.8, and 17.2.5 also has this problem,And more serious.
The memory of ceph-mgr continues to increase and there is no downward trend. I noticed that the memory of ceph-mgr has increased to 20G or even higher.If the mgr service has not been restarted for several years, the memory may also gradually increase (uses the default log level 1/5).
The ceph-mon has the same problem, but the log volume of mon is less than that of mgr (debug_mon = debug_mgr =30/30). The phenomenon is that the memory of ceph-mon increases more slowly and takes up less space.
This bug has the potential to OOM the whole system.
Files
BZ Updated by Bo Zhang almost 3 years ago
- File mon.heap.pdf mon.heap.pdf added
To view the mon's memory information, please see the mon.heap.pdf in the attachment.
There is a problem with the ceph log module.
BZ Updated by Bo Zhang almost 3 years ago
ceph 17.2.5 behaves more severely than 14.2.8, and the memory grows several times faster
IF Updated by Igor Fedotov almost 3 years ago
- Is duplicate of Bug #64078: When I set debug_mgr 30/30, the memory of ceph-mgr will keep rising added
IF Updated by Igor Fedotov almost 3 years ago
- Project changed from bluestore to mgr
BZ Updated by Bo Zhang almost 3 years ago
If I don’t add logs to m_recent, the memory will not increase significantly.Reducing the value of DEFAULT_MAX_RECENT will also be useful.
NM Updated by Nitzan Mordechai 6 months ago
- Backport set to tentacle, umbrella
- Pull request ID set to 69325
NM Updated by Nitzan Mordechai 6 months ago
- Status changed from New to Duplicate
Closing as duplicate
UB Updated by Upkeep Bot 4 months ago
- Merge Commit set to a51414287f4aef2279ae9c0137a1a3dbe49b79aa
- Fixed In set to v21.3.0-1497-ga51414287f
- Upkeep Timestamp set to 2026-07-28T23:56:34+00:00
NM Updated by Nitzan Mordechai 4 months ago
- Status changed from Duplicate to Resolved