I am somewhat confused about the amount of memory DirectAdmin report in GUI for php-fpm. This is on a server with 128 GB RAM:
At the same time of generating the above output, DirectAdmin GUI report that php-fpm72 is using 76.48 GB - but if that was true, then it would not show 86 under "available" in above output! That is confusing.
I am using opcache, and I have set the following setting:
I think that does indeed affect how much memory each php-fpm instance is using. I wonder if that is not actual memory used, but reported as used by buffers?
Also I suspect that all the memory that php-fpm is using, might not be actuall memory used, I suspect that maybe some of it is added by opcache and only reserved and not necessarily used. Because the math above does not make sense. Maybe someone else has more information?
Code:
[root@server ~]# free -g
total used free shared buff/cache available
Mem: 125 22 1 15 101 86
Swap: 0 0 0
[root@server ~]#
At the same time of generating the above output, DirectAdmin GUI report that php-fpm72 is using 76.48 GB - but if that was true, then it would not show 86 under "available" in above output! That is confusing.
I am using opcache, and I have set the following setting:
Code:
opcache.interned_strings_buffer 128
I think that does indeed affect how much memory each php-fpm instance is using. I wonder if that is not actual memory used, but reported as used by buffers?
Also I suspect that all the memory that php-fpm is using, might not be actuall memory used, I suspect that maybe some of it is added by opcache and only reserved and not necessarily used. Because the math above does not make sense. Maybe someone else has more information?