WebFaction
Community site: login faq

The documentation on memory usage seems to be a bit out of date. So can someone help with the following:

  PID   RSS COMMAND
 6220  1632 sshd: someone@notty
 6306  1544 /usr/libexec/openssh/sftp-server
 6387  1600 sshd: someone@pts/4
 6391  1500 -bash
10632 50064 /usr/local/apache2-mpm-peruser/bin/httpd -k start
11194  3476 /home/someone/webapps/djangoapp/apache2/bin/httpd -k start
12133   952 ps -u someone -o pid,rss,command
12134   768 awk {print $0}{sum+=$2} END {print "Total", sum/1024, "MB"}
19853 58048 /usr/local/apache2-mpm-peruser/bin/httpd -k start
26026  1996 /home/someone/webapps/djangoapp/apache2/bin/httpd -k start
26033  3012 /home/someone/webapps/djangoapp/apache2/bin/httpd -k start
Total 121.672 MB

There is a single django instance called djangoapp which is accessed via its own Apache instance. It has always been like this. Presumably the two apache instances /usr/local/apache2-mpm-peruser/bin/httpd are also part of someone's memory usage though they are not part of any app he created. The question is does every django own two of these fairly memoryt hungry processes? If so one must expect approx 234Mb of memory usage for two django apps. Which is too close to the 256Mb for comfort, is it not?

This is on web91.

asked 10 Oct '12, 05:46

Peter Mott
17211
accept rate: 0%


Hi,

The "/usr/local/apache2-mpm-peruser/bin/httpd -k start" processes are from the shared Apache instance - those are probably serving PHP scripts from your Static/CGI/PHP apps. You seem to be on one of the older servers, where PHP is installed as an Apache module. You can request to be moved to a newer server by using the "Server migration" link in your control panel.

Note that the shared Apache processes do not count to your memory usage. You can run the following command to calculate the RAM used:

ps -u USERNAME -o rss,command | grep -v peruser | awk '{sum+=$1} END {print sum/1024}'

permanent link

answered 10 Oct '12, 07:51

todork
1.2k4
accept rate: 34%

Thanks. That resolves the issue. And, yes, there are some PHP apps.

(10 Oct '12, 08:39) Peter Mott
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:

×899
×83
×18

question asked: 10 Oct '12, 05:46

question was seen: 2,007 times

last updated: 10 Oct '12, 08:39

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