First time here? Check out the FAQ!
2

How much memory an askbot application requires?

Hello.

I was wondering if any of you have noticed how much memory an askbot application requires? In my case, when server is up and running, memory usage is about 120 MB (without any request to the server etc). Is this expected?

Thanx, Alex

alexandros.z's avatar
596
alexandros.z
asked 2012-04-28 14:17:40 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

Looked at my development environment - 50Mb per process, maybe a bit less.

Evgeny's avatar
13.2k
Evgeny
answered 2012-04-28 15:55:25 -0600
edit flag offensive 0 remove flag delete link

Comments

Ok maybe this means alex runs two processes. So, if he kills one, the site will still run but slower and with half memory usage? Is there any recommended number of processes (let's say for a site with the traffic of this community)?

zaf's avatar zaf (2012-04-28 17:01:30 -0600) edit
1

I think that for a small community one process is enough, I cannot exactly tell when you need a second. You can try estimating from your "requests per second" data and the time to produce a response (100-300ms depending on the page and the hardware). Only considerably popular sites have more than one request per second. This site can live on a single process no problems.

Evgeny's avatar Evgeny (2012-04-28 17:11:14 -0600) edit

my processess situation is the same as in this post, (I use django 1.3.1 but I suppose that doesn't change things). So I see 4 processes, the 2 big of which use ~55MB each (the other two, no more than 5MB each). Is it in the httpd.conf file of apache where I configure number of processes, so that I turn it to use only one? thanks again Evgeny, you're really helping us out!

zaf's avatar zaf (2012-04-28 17:22:50 -0600) edit

Here unfortunately I cannot help much - that depends on how webfaction is setting things up. How is python run under apache (it's apache I assume), mod_wsgi? httpd.conf should be the place to look. How much of that file you can edit manually - don't know. I'd ask the webfaction guys.

Evgeny's avatar Evgeny (2012-04-28 17:37:37 -0600) edit

Yeah it's apache. I have my own conf file and I can edit it [already have :) to add authentication until site is live]. Possible lines for update are:

`MaxSpareThreads 3

MinSpareThreads 1

ThreadsPerChild 5

WSGIDaemonProcess myDjangoApp processes=2 threads=12 python-path=/home/myUserName/webapps/myDjangoApp:/home/myUserName/webapps/myDjangoApp/lib/python2.6`

Any idea on what to update to have one process? meanwhile i'll ask webfaction too.

zaf's avatar zaf (2012-04-28 17:40:55 -0600) edit
add a comment see more comments