Files
kumomta/crates/kumo-server-memory
Wez Furlong 81987604e9 memory: include jemalloc stats in api endpoint
The goal here was to show the lowest level of stats available from the
allocator by querying jemalloc for that info, so that we can understand
the gap between what Rust sees and what any embedded C stuff might see.

```
; curl -s 'http://127.0.0.1:8000/api/admin/memory/stats'
JemallocStats {
    allocated: 25654488 (25.65 MB),
    active: 35651584 (35.65 MB),
    metadata: 29685520 (29.69 MB),
    resident: 85446656 (85.45 MB),
    mapped: 364630016 (364.63 MB),
    retained: 252981248 (252.98 MB),
}
RSS = 142651392 (142.65 MB)
soft limit = Some(202282060800 (202.28 GB))
hard limit = Some(269709414400 (269.71 GB))
live = CountAndSize { count: 109237 (109,237), size: 12111580 (12.11 MB) }

use kumo.enable_memory_callstack_tracking(true) to enable additional stats
```
2024-12-12 09:08:50 -07:00
..