Today I transferred the whole installation of MATOMO to a new clean air force and after several hours of unstable operation I got the same error as on another server
/usr/bin/php /var/www/mysite.com/web/console core:archive --url=http://mysite.com/
PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 4096 bytes) in /var/www/mysite.com/web/vendor/composer/autoload_static.php on line 250
This is manifested in an indirect way - there are visits and they can be seen, but at some point the count of visits stops increasing, and when this happens once the generation in the crone completely stops