Ask Your Question
2

How much memory an askbot application requires?

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

alexandros.z gravatar image alexandros.z
620 14 10 31

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

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

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

Evgeny gravatar image Evgeny flag of Chile
11329 50 84 183
http://askbot.org/

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

link publish delete flag offensive edit

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 ( 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 ( 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 ( 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 ( 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 ( 2012-04-28 17:40:55 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

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

Seen: 79 times

Last updated: Apr 28 '12