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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
alexandros.z's avatar
596
alexandros.z
asked 13 years ago

Comments

see more comments

1 Answer

1

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 13 years ago
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 (13 years ago)
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 (13 years ago)

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 (13 years ago)

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 (13 years ago)

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 (13 years ago)
see more comments