If memcached is supposed to be used in the project, it is necessary to set it up in accordance with the expected load.
To this effect:
Set the following parameters in the file /etc/sysconfig/memcached:
MAXCONN = "10240" - the number of simultaneous connections (by default 1024);
CACHESIZE="1024" - memory allocated for cache (by default 64 MB);
OPTIONS="t 8" - number of memcached flows (by default 4).
Note: the parameters MAXCONN, CACHESIZE, and OPTIONS are selected experimentally depending on the nature of load and available resources.
The size of your file cache may be used to evaluate the memory size necessary for caching (CACHESIZE parameter). If file cache in your project consumes 3 GB, the use of memcache with 256 MB of memory will not be efficient due to frequent preemption
Once memcache is set, it must be restarted using the command:
service memcached restart
Next, connect it to bitrix/php_intarface/dbconn.php: