Hi Everyone,
I am having an issue with our matomo installation. Every evening by around 21:25 and during around 2,5 hours matomo server gets very busy and start to create over 1500 RequestWorkers and over 600 sql connections trying to insert archive_bolb. Query | Waiting for table metadata lock | INSERT INTO matomo_queuedtracking_list_trackingQueueV1 (list_value) …
During this time matomo server cannot register or be accessed.
Matomo errors : /matomo/libs/Zend/Db/A dapter/Pdo/Abstract.php(144): SQLSTATE[HY000] [1040] Too many connections
over 100000 errors are produce during that time.
And during a sql search: SELECT idsite, date1, date2, period, name, COUNT(*) as count FROM matomo_archive_blob_2023_09 GROUP BY idsite, date1, date2, period, name HAVING count > 1;
I found out that there are many counts that are >1.
We have cronjob every hour console core:archive --url=“xxx” that runs without errors.
ps -e |` grep apache2 | wc -l >>> 1500
ss -nputw | grep x.x.x.x | wc -l > 600
Matomo version: 4.15.1
MySQL version: 8.0.25
PHP version: 8.1.23
Operativsystem: Debian 11.7
Kernel: 5.10.0-25-amd64
pm = dynamic
pm.max_children = 500
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 10
pm.max_requests = 500
upload_max_filesize = 32M
post_max_size = 128M
opcache.enable_cli=1
opcache.memory_consumption=256
opcache.interned_strings_buffer=128
opcache.max_accelerated_files=30139
opcache.revalidate_freq=0
opcache.validate_timestamps=0
opcache.jit=1235
opcache.fast_shutdown=1
opcache.jit_buffer_size=256M
opcache.save_comments=0
I hope we can solve this issue that has been going on for so many month…
Thank you for any help given.
3 posts - 2 participants