Page MenuHomekolab.org

Manually track memory usage
ClosedPublic

Authored by mollekopf on Apr 30 2020, 6:16 PM.

Details

Summary

memory_get_usage() does not return useful results at it seems like the
bulk of the memory is used outside of the php engine (e.g. in
resources).

RSS usage can for instance be tracked using the following snippet:

`ps --pid $pid --no-headers -orss`;

The current accumulation method is in no way accurate and will probably
require some tuning to be on the safe side.

Diff Detail

Repository
rS syncroton
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 29320
Build 10675: arc lint + arc unit

Event Timeline

mollekopf requested review of this revision.Apr 30 2020, 6:16 PM
mollekopf created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.May 4 2020, 11:50 AM
This revision was automatically updated to reflect the committed changes.