And yes.. For worker MPM you need to compile apache with that option (-with-mpm=worker). I forgot to add that!!

Prasanna Ram


On Mon, May 4, 2009 at 9:06 PM, Prasanna Ram Venkatachalam <vpram86@gmail.com> wrote:
Hi Rex, Jan told all in detail i guess. I was about to start typing for you. Anyway, just an addition to that, try googling about Pre-fork and worker-MPM mode. In the second, you can limit the processes by configuring more threads for each process (threads serve requests here). But there might be an increase in CPU %.

Regards
Prasanna Ram


On Mon, May 4, 2009 at 9:00 PM, Jan G.B. <ro0ot.w00t@googlemail.com> wrote:
2009/5/4 Rex C. Eastbourne <rex.eastbourne@gmail.com>:
> 2009/5/4 Matus UHLAR - fantomas <uhlar@fantomas.sk>:
>> [...]
>> how much of RAM do you have on that machine?
>>
>
> 512 MB. Not a lot, I know, but I had thought it would be sufficient to
> run a website with low traffic like mine.
>
>>
>> Do you use ubuntu's apache package(s)? Don't you have too much of useless
>> modules loaded?
>>
>
> Through apt-get I have installed Apache2 and mod_python. I don't have
> many useless modules loaded; baseline memory usage is only around 60
> MB.
>
> Any ideas? Is it normal for there to be dozens of Apache processes like this?
>
> Thanks,
>
> Rex
>




Hi Rex,

it's quite normal: as more visitors come along, more apache processess
will be spawned. You can set up how much processes are reserved, how
many are allowed and so on. Just have a look in your server config.

One apache process will consume as much RAM as your most complex page
will require to render. So if you serve different, static and simple
HTML files 10000 and one php script using 200MB of ram, one process
will use 200MB at least.

You should tweak your config by calculating how many processes your
server will handle with the installed application on it.
You'll find a lot of pages describing the optimization process and the
needed config-options. Try Google or look into the apache docs! All
options and the stuff I was writing is well described there.

Bye, Jan

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
  "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org