Score:0

Apache mpm event-increasing StartServers has no effect on memory

fr flag

I'm using apache mpm event on centos server with the following configs:

<IfModule event.c>
StartServers 8
ServerLimit 64
ThreadsPerChild 256
MaxRequestWorkers 16384
MaxConnectionsPerChild 10000
MinSpareThreads 125
MaxSpareThreads 250
ThreadLimit 256
KeepAlive On
KeepAliveTimeout 2
MaxKeepAliveRequests 500
</IfModule>

I then increased the value of StartServers from 8 to 32 and rebuilt and restarted apache, but I can't see any difference in free memory of system. I expected to see more ram is being used by apache when I increase the value of startServers. why no change is happening in ram usage? does it mean I'm doing something wrong?

Score:1
cn flag
Bob

Additional "servers" get forked, which is (initially) a very lightweight operation, as the memory doesn't actually get copied for each process. The original and forked process will continue to share the same memory pages until they are being written to with a copy-on-write mechanism. Only once each forked process, each apache "server" starts experiencing load you will see a relevant increase in memory consumption.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.