Page MenuHomePhorge

Manually track memory usage
ClosedPublic

Authored by mollekopf on Apr 30 2020, 6:16 PM.
Tags
None
Referenced Files
F11589576: D1237.id.diff
Thu, Mar 28, 11:32 PM
F11588820: D1237.id.diff
Thu, Mar 28, 9:18 PM
F11587452: D1237.id3184.diff
Thu, Mar 28, 5:37 PM
Unknown Object (File)
Sat, Mar 16, 7:28 PM
Unknown Object (File)
Mon, Mar 11, 11:32 AM
Unknown Object (File)
Feb 20 2024, 2:14 PM
Unknown Object (File)
Feb 6 2024, 4:04 PM
Unknown Object (File)
Jan 25 2024, 4:56 AM
Subscribers
None

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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

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.