allofphysicsgraph / proofofconcept

Physics Derivation Graph: mathematical connections among equations
https://derivationmap.net/
Other
20 stars 6 forks source link

high memory usage on DigitalOcean droplet #168

Open bhpayne opened 4 years ago

bhpayne commented 4 years ago

memory usage is 60 to 70% (of the 1GB available) with most used by gunicorn

to see memory use per process, see

ps -o pid,user,%mem,command ax | sort -b -k3 -r

as per https://linuxhint.com/check_memory_usage_process_linux/

bhpayne commented 4 years ago

It is possible to decrease memory use with --preload but that is in conflict with reload which is needed for hot swapping code -- see https://github.com/allofphysicsgraph/proofofconcept/issues/144

https://docs.gunicorn.org/en/stable/settings.html#reload