After apache2 and php, the memory of an httpd process soared to 28 MB. before php was added, each httpd process consumed about 1 MB of memory. However, after php was added, the memory reached 28 MB, how can I adjust the memory usage of each httpd? Thank you ------ solution ------------------ I am still 33 M local. It should be normal. ------ Solution ------------------ view apa apache2 with php, the memory of an httpd process soared to 28 M
Before adding php, each httpd process uses about 1 MB of memory, but after adding php, the memory reaches 28 MB. how can I adjust the memory usage of each httpd?
Thank you.
------ Solution --------------------
I am still 33 M local. It should be normal.
------ Solution --------------------
View the concurrent multi-process module of apache and view the mode (work, prefork, mpm ). Adjust the maximum number of sub-processes in this module.
For more information, see the manual.
------ Solution --------------------
How much can I save for dozens of MB. How much memory does your machine have.
Discussion
Reference:
View the concurrent multi-process module of apache and view the mode (work, prefork, mpm ). Adjust the maximum number of sub-processes in this module.
For more information, see the manual.
Is this related to the above configuration of apache? Before the php module is added, the memory of each httpd process is about 1 MB. when the php module is added, the memory usage of each httpd process is increased to 28 MB. how can I reduce the memory occupied by each httpd process?
------ Solution --------------------
On apache installation, multiple-process modules, mpm, work, and prefork are installed. It can control the maximum number of processes and threads. Since you do not have much memory, it is not a good way to limit the number of processes.
------ Solution --------------------
You can view the number of processes on your server:
Ps-ef | grep httpd | wc-l
------ Solution --------------------
Just added the php module? Remove unnecessary so extensions in php to see if they are helpful.
------ Solution --------------------
It seems to be normal!