Project

General

Profile

Actions

Bug #64082

closed
BZ

When I set debug_mgr 30/30, the memory of ceph-mgr will keep rising

Bug #64082: When I set debug_mgr 30/30, the memory of ceph-mgr will keep rising

Added by Bo Zhang almost 3 years ago. Updated 4 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
tentacle, umbrella
Regression:
No
Severity:
1 - critical
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-1497-ga51414287f
Released In:
Upkeep Timestamp:
2026-07-28T23:56:34+00:00

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

test.heap.pdf (15.5 KB) test.heap.pdf Bo Zhang, 01/18/2024 08:01 AM
test.compare.pdf (13.3 KB) test.compare.pdf Bo Zhang, 01/18/2024 08:02 AM
mon.heap.pdf (18.3 KB) mon.heap.pdf Bo Zhang, 01/18/2024 08:13 AM

Related issues 1 (0 open — 1 closed)

Is duplicate of mgr - Bug #64078: When I set debug_mgr 30/30, the memory of ceph-mgr will keep risingDuplicate

Actions

BZ Updated by Bo Zhang almost 3 years ago Actions #1

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 Actions #2

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 Actions #3

  • 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 Actions #4

  • Project changed from bluestore to mgr

BZ Updated by Bo Zhang almost 3 years ago Actions #5

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 Actions #6

  • Backport set to tentacle, umbrella
  • Pull request ID set to 69325

NM Updated by Nitzan Mordechai 6 months ago Actions #7

  • Status changed from New to Duplicate

Closing as duplicate

UB Updated by Upkeep Bot 4 months ago Actions #8

  • 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 Actions #9

  • Status changed from Duplicate to Resolved
Actions

Also available in: PDF Atom