MAMP에서 아파치 프로세스 줄이기

퍼온곳 : http://rimu.geek.nz/blog/reduce-mamp-memory-usage-limiting-number-apache-processes

 

Reduce MAMP memory usage by limiting the number of Apache processes

 

When developing web sites on a Mac it is common to use MAMP. By default MAMP will run several Apache processes because that’s just what Apache does by default – having several processes means several requests can be served at once. But, in a local development scenario, this is very unlikely to happen because the only user is the one operating the computer. Each process consumes roughly 40 MB so roughly 400 MB of RAM can be used for no real reason.

When I put the following snippet at the top of httpd.conf, the number of processes was reduced to 4.

<IfModule prefork.c>
    StartServers    2
    MinSpareServers   1
    MaxSpareServers   4
    MaxClients     7
    MaxRequestsPerChild   100
</IfModule>

On my memory-starved laptop this made a significant difference. 🙂

In MAMP you can edit the httpd.conf file by going to File -> Edit Template -> Apache -> httpd.conf. Any changes you make here won’t take affect until you restart Apache.

Leave a Comment

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

이 사이트는 Akismet을 사용하여 스팸을 줄입니다. 댓글 데이터가 어떻게 처리되는지 알아보세요.