I am working on one server having 16GB
of RAM. It runs on Apache with php-fpm. The site hosted on this server is taking about 10 seconds to load. First I thought that it's a resources issue, but when I checked memory usage, It's showing me that about 10GB of memory is available!
Here is the output of free -m
command.
total used free shared buff/cache available
Mem: 16046 5016 2972 265 8057 10138
Swap: 1023 88 935
I checked php.ini
for memory_limit
and it is set to 2048MB
. The site hosted on this server runs on Wordpress and WooCommerce.
Here is the mpm_event.conf
file settings.
<IfModule mpm_event_module>
ServerLimit 925
StartServers 4
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 128
ThreadsPerChild 128
MaxRequestWorkers 925
MaxConnectionsPerChild 1000
</IfModule>
I don't know what's wrong here. Anything I can do to allow Apache and PHP to use more memory which is available on the server?