memory management - what are the good ways to deploy and manage python script on production server? -
i've written lot of python scripts. want run on computer running non-stop crawling, analyzing data , update sql database. open command prompt , run scripts:
python [script directory]
but many scripts have open many cmd , every script call python interpreter, end huge mess using lot of memory. should manage these scripts.
you haven't specified os server is, assuming it's linux server should research process management tool such supervisord or systemd. these tools designed run , monitor program automatically, , restart if crashes.
if you're using ubuntu 16.04 comes systemd out of box, find supervisord easier configure , use simple tasks.
these programs won't memory consumption issues however. sure can place caps on memory use process, that's not going if stops program working. you're best re-evaluate code , ways reduce memory footprint or use server more ram.
edit:
you've added os windows 10, makes above irrelevant. can use windows task scheduler automatically execute long running tasks.
wiki
Comments
Post a Comment