Ask Your Question
2

How much memory an askbot application requires?

asked 2012-04-28 14:17:40 -0500

alexandros.z gravatar image

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-04-28 15:55:25 -0500

Evgeny gravatar image

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

edit flag offensive delete link more

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 gravatar imagezaf ( 2012-04-28 17:01:30 -0500 )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 gravatar imageEvgeny ( 2012-04-28 17:11:14 -0500 )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 gravatar imagezaf ( 2012-04-28 17:22:50 -0500 )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 gravatar imageEvgeny ( 2012-04-28 17:37:37 -0500 )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 gravatar imagezaf ( 2012-04-28 17:40:55 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-04-28 14:17:40 -0500

Seen: 121 times

Last updated: Apr 28 '12