login community faq

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
  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 Oct 10 '12 at 05:46

Peter%20Mott's gravatar image

Peter Mott
72


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}'

answered Oct 10 '12 at 07:51

todork's gravatar image

todork
10964

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

(Oct 10 '12 at 08:39) Peter Mott Peter%20Mott's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
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

Tags:

×643
×57
×13

Asked: Oct 10 '12 at 05:46

Seen: 447 times

Last updated: Oct 10 '12 at 08:39

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited