I am running centos 7 webserver for one of my clients inside there is a python script that is start from a php script. (this process can happen a few thousand times a minute).
For whatever reason the python scripts are left opened in the server after they finish running each one of them for something like 30 seconds.
This puts a huge load on the server and it's causing me many issue, i tried adding in exit() and sys.exit to the end of the code and in the appropriate function areas but it does not seem to work.
I know that the process are kept a live because i can see them using the top command and they also already made the server shutdown 2 times.
my question is how do i go about shutting down this python scripts what am i missing?
via Shaked Tayeb
No comments:
Post a Comment