WebFaction
Community site: login faq
0
1

I'm dealing with memory consumption problem. My apache conf creates 4 processes for each app. What I've tried is killing three of that four processes and I did not noticed any difference..... My question are: It's this healthy? I'm broking something?

This sites are very light in the moment, because not so much information is save, but in the future that amount of info could increase in a significant way. Could the site have a bad performance...

Sorry if I'm becoming very tedious.

asked 22 Dec '10, 18:57

Luchi's gravatar image

Luchi
4137
accept rate: 20%


Hi,

You can turn the number of processes down to a lower number by editing apache2/conf/httpd.conf and changing processes=X to processes=y (the number you want) in most cases, you can turn this to 1 or 2 depending on your traffic.

permanent link

answered 22 Dec '10, 19:09

klynton's gravatar image

klynton
1.6k129
accept rate: 42%

Yes I know that editing that file I can reduce the number of processe, but I can't do it. This is my httpd.conf file:

ServerRoot "/home/aureasys/webapps/ppr/apache2"

LoadModule dir_module        modules/mod_dir.so
LoadModule env_module        modules/mod_env.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module       modules/mod_mime.so
LoadModule rewrite_module    modules/mod_rewrite.so
LoadModule setenvif_module   modules/mod_setenvif.so
LoadModule wsgi_module       modules/mod_wsgi.so

LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog /home/aureasys/logs/user/access_ppr.log combined
ErrorLog /home/aureasys/logs/user/error_ppr.log
KeepAlive Off
Listen 16468
MaxSpareThreads 3
MinSpareThreads 1
ServerLimit 1
SetEnvIf X-Forwarded-SSL on HTTPS=1
ThreadsPerChild 5
WSGIDaemonProcess ppr processes=1 python-path=/home/aureasys/webapps/ppr:/home/aureasys/webapps/ppr/lib/python2.6 threads=1
WSGIPythonPath /home/aureasys/webapps/ppr:/home/aureasys/webapps/ppr/lib/python2.6
WSGIScriptAlias / /home/aureasys/webapps/ppr/ppr.wsgi

I have processes=1 but when I run stop and start I get three processe.

Anyway the thing I want to know is if having only one process is a "stupid thing". Looking around in the site, I did not notice the difference.... That's my dilemma jeje

Sorry for the English but I'm from Argentina......

permanent link

answered 22 Dec '10, 19:36

Luchi's gravatar image

Luchi
4137
accept rate: 20%

Hi,

You are getting 3 total processes because of MinSpareThreads 1 ServerLimit 1 and processes=1.

(22 Dec '10, 19:43) klynton klynton's gravatar image

Thanks klynton for the fast answer, but I can't get the number of processes to one, because if I comment that line creates more, and must be greater than one, so I can't get just one process. Sorry for my stupidness, jeje

permanent link

answered 22 Dec '10, 19:54

Luchi's gravatar image

Luchi
4137
accept rate: 20%

You're very welcome! No worries, it looks like 3 is the fewest number of processes.

(22 Dec '10, 19:56) klynton klynton's gravatar image

Ok thanks, so I will have to buy the other plan, jejej.... This programming thing it's becoming expensive, jejej.....

(22 Dec '10, 19:59) Luchi Luchi's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×891
×82
×9
×3

question asked: 22 Dec '10, 18:57

question was seen: 2,763 times

last updated: 22 Dec '10, 19:59

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2017 PARAGON INTERNET GROUP LIMITED
WEBFACTION IS A SERVICE OF PARAGON INTERNET GROUP LIMITED
REGISTERED IN ENGLAND AND WALES 7573953 - VAT REGISTRATION NUMBER 182147021
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM