Skip to main content

Module muxspect_memory

Module muxspect_memory 

Source
Expand description

srv’s own memory report: logged every few minutes, and served to muxspect memory. What is read, and why those three things side by side: backend::mem_census.

Functions§

handle_muxspect_memory
GET /api/v1/muxspect/memory: what the operating system has given srv, what srv has allocated and not freed, and the count and estimated bytes of each structure that grows with use. The same reading the srv memory log line carries, with every structure listed. Read-only.
reading 🔒
One reading, on the blocking pool: the census walks every counted structure under its own lock.
spawn_reporter
Log a reading a minute after start, then one every five minutes for as long as srv runs.