WebFaction
Community site: login faq
4
1

There is a limit of 256 MB on the account in terms of memory consumption for Web applications.

How is WebFaction measuring that? I would like to know in order to determine how WebFaction views my application's memory usage, and in order to be able to determine if I will eventually need to perform optimizations to reduce memory usage.

I'm aware of how much memory it takes to run on my system, but my system and their system are completely different creatures, which is why I want to know if anyone knows how WebFaction does it.

BTW, the application is question is running inside a Python virtualenv, using Django. This should not make any major differences, but I list it for completeness sake.

Thanks!

asked 15 Apr '12, 11:09

mbt's gravatar image

mbt
4314
accept rate: 0%


You just need to add up the amount of memory your processes are using. The following command will give you a list of processes their memory usage and a total.

ps -u <username> -o pid,rss,command | awk '{print $0}{sum+=$2} END {print "Total", sum/1024, "MB"}'
permanent link

answered 15 Apr '12, 11:30

bmeyer71's gravatar image

bmeyer71 ♦♦
1.4k3613
accept rate: 33%

Just wanted to be sure that it was RSS they use and not some other method, such as one that might account for identical pages (and thus lower the result). Thanks!

BTW, I tried (but failed) to upvote your answer. Sorry I couldn't do that.

(15 Apr '12, 17:13) mbt mbt's gravatar image

No worries. Glad I could help.

(15 Apr '12, 17:22) bmeyer71 ♦♦ bmeyer71's gravatar image
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:

×893
×82
×10
×3

question asked: 15 Apr '12, 11:09

question was seen: 9,436 times

last updated: 15 Apr '12, 17:22

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2017 PARAGON INTERNET GROUP LIMITED
WEBFACTION IS A SERVICE OF PARAGON INTERNET GROUP LIMITED
REGISTERED IN ENGLAND AND WALES 7573953 - VAT REGISTRATION NUMBER 182147021
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM