AtoM worker memory usage
|Status:||In progress||Start date:||10/12/2021|
|Assignee:||Steve Breker||% Done:|
|Target version:||Release 2.7.0|
|Google Code Legacy ID:||Tested version:|
The atom-worker process' resident memory will increase over time as jobs are run. This memory is never released by the worker process.
Add code to the atom-worker to generate memory profiler 'grind' files which can be used to gain insight into where the process' memory is leaking from.
#3 Updated by Steve Breker about 1 month ago
Add class for interacting with arnaud-lb/php-memory-profiler. Set up for
use in the atom-worker.
- install arnaud-lb/php-memory-profiler
- configure atom-worker.service to include "Environment=MEMPROF_PROFILE=native"
- OPTIONAL: set the basepath and name using env var: "Environment=MEMPROF_OUTPUT_BASENAME=/vagrant/atom_memprof_file.grind"
- run: sudo systemctl daemon-reload
- restart the atom-worker
If MEMPROF_OUTPUT_BASENAME is not set, the grind files will be output to the AtoM folder (atom_memprof_file.grind.).