WebFaction
Community site: login faq

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
141512
accept rate: 0%

edited 06 Nov '14, 03:02

Your paste URL points to a deleted paste.

(06 Nov '14, 01:27) seanf

@seanf, sorry it was the linking with the period at the end. i updated the question with a new one.

(06 Nov '14, 03:01) rsp

Ok, my guess is that your app's bin/start script isn't checking to see if the app is already running before it starts another instance.

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!

permanent link

answered 06 Nov '14, 23:32

seanf
12.2k31736
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×901
×185
×84
×17

question asked: 05 Nov '14, 23:51

question was seen: 1,834 times

last updated: 06 Nov '14, 23:32

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2016 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM