Improved Docker support in DripStat APM

Starting from Agent 11.1, when running inside a docker container, the Java APM agent will report the memory assigned to the container as System RAM, instead of the entire memory of the host.

Docker has a limitation where it doesn't virtualize the /proc filesystem. Thus before 11.1, when reading system RAM, the entire RAM of the underlying system would be reported. From 11.1 onwards, only the memory assigned to the container is reported. Note that you must set memory limits on your containers for this to work properly.

This change should result in much lower bills for folks running small docker containers on large instances.

Show Comments