Hello,
I am sorry for asking such a basic question. But could anyone please help me regarding the below.
We are having a Linux server with 4GB RAM which is used by 3 production Apache web instance.
Customer requsted us to add 10 more web instance in this server.
I am not sure whether any problem will occur if this server is loaded with 13 instances. Example RAM shortage etc.
Could anyone please tell me what are all i need to check to confirm that this server is capable for adding 10 more instances.
below are few Informations
[root@ogw01601 cgi-bin]# free -m
total used free shared buffers cached
Mem: 3823 3492 330 0 268 2417
-/+ buffers/cache: 807 3016
Swap: 5122 0 5122
This extra 10 instances will be same like the old 3 instances. These instances will do the same function as the old 3 instances.
So I hope by knowing the RAM consumption of the current running instance we can conclude whether we can add 10 more instances.
Setting in httpd.conf file:
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
StartServers 4
MinSpareServers 4
MaxSpareServers 16
MaxClients 255
MaxRequestsPerChild 0
Memory usage of 1 web instaance:
[root@ogw01601 cgi-bin]# ps aux | grep 'bqk10' | grep 'httpd' | awk '{print $6}'
6224
5916
5964
5932
5952
5852
5912
5840
5816
5868
5844
5840
5900
5828
4356
8512
5956
5952
5880
6004
5940
Here almost 20 child proccess is there in 1 of my web instance. Does it means currenlty there are 20 simultaneous connections present.
Each child process having around 5mb. We set maxclient values as 256 then if 255 request comes at a time then 256 child proces will be created each with 5MB?
I am asking this question because if my above understanding is correct then i will ask the customer about the maximum user count. With that i can calculate how much memory required for each instance.
Example if the customer tells maximum user will be 50 then ican conclude as maximum memory required for 1 instance will be 50*5. 50 is the user count and 5 is the memory consumed by each child proccess.
Could anyone suggest me on this.
I am sorry if the information i provided is insufficient.
Your help is highly appriciated.