Description
APM Server version (apm-server version
): confirmed on 8.13.2 but affects all versions including the latest 8.14.1
Description of the problem including expected versus actual behavior:
When tail-based sampling (TBS) is enabled, the memory usage will go as high as the local TBS database storage size. When viewing /proc/meminfo
, most of the memory usage shows up as "Mapped". This is particularly noticeable in setups which consist of multiple apm-servers and receive high load, making horizontal scaling less effective.
Steps to reproduce:
Please include a minimal but complete recreation of the problem,
including server configuration, agent(s) used, etc. The easier you make it
for us to reproduce it, the more likely that somebody will take the time to
look at it.
- start 2 separate apm-servers (calling them A and B) and send load to them independently using apmsoak. Wait until their local TBS database size grows to >1GB.
- stop A, wait for 10mins, then restart A without sending load to it.
- observe that the A's memory usage increases to approximately to its local TBS database size