I followed this guide successfully (https://community.webfaction.com/questions/10242/installing-nginx-uwsgi), except for one issue. Every so often my account goes over the memory limit. I posted an example of the ps output: http://pastebin.com/jqA3DTvM . From what I can tell it seems several uwsgi processes are created (there are two apps under the same configuration "cpclive" and "cpcstaging" and they each seem to have this issue). I think that's my problem? but from the configuration described in that guide, I don't know why that would be happening. Anyone with any thoughts? I did put a cronjob to run the start script daily, in case it stops for some reason? asked 05 Nov '14, 23:51 rsp |
Ok, my guess is that your app's To fix it, modify your start script so it reads the contents of your uwsgi.pid file to get the pid of the most recently started uwsgi process. Then, have it check your process listing to see if that process is still running. If it is, then abort (since there is no need to start it again). Hope that helps! answered 06 Nov '14, 23:32 seanf |
Your paste URL points to a deleted paste.
@seanf, sorry it was the linking with the period at the end. i updated the question with a new one.