Problem with database - Please report this message in the Piwik forums

I get this message from the cron job:

INFO [2017-03-23 19:23:01] ---------------------------
INFO [2017-03-23 19:23:01] INIT
INFO [2017-03-23 19:23:01] Running Piwik 3.0.2 as Super User
INFO [2017-03-23 19:23:01] ---------------------------
INFO [2017-03-23 19:23:01] NOTES
INFO [2017-03-23 19:23:01] - Reports for today will be processed at most every 1800 seconds. You can change this value in Piwik UI > Settings > General Settings.
INFO [2017-03-23 19:23:01] - Reports for the current week/month/year will be refreshed at most every 3600 seconds.
INFO [2017-03-23 19:23:01] - Archiving was last executed without error 3 days 15 hours ago
INFO [2017-03-23 19:23:01] - Will process 1 other websites because the last time they were archived was on a different day (in the website’s timezone) , IDs: 1
INFO [2017-03-23 19:23:01] ---------------------------
INFO [2017-03-23 19:23:01] START
INFO [2017-03-23 19:23:01] Starting Piwik reports archiving…
INFO [2017-03-23 19:23:01] Day has finished for website id 1 since last run
INFO [2017-03-23 19:23:01] Will pre-process for website id = 1, period = day, date = last2
INFO [2017-03-23 19:23:01] - pre-processing all visits
INFO [2017-03-23 19:23:13] Archived website id = 1, period = day, 0 segments, 59634 visits in last 2 days, 28488 visits today, Time elapsed: 12.504s
INFO [2017-03-23 19:23:13] Will pre-process for website id = 1, period = week, date = last5
INFO [2017-03-23 19:23:13] - pre-processing all visits
INFO [2017-03-23 19:23:17] Archived website id = 1, period = week, 0 segments, 942803 visits in last 5 weeks, 135744 visits this week, Time elapsed: 4.187s
INFO [2017-03-23 19:23:17] Will pre-process for website id = 1, period = month, date = last5
INFO [2017-03-23 19:23:17] - pre-processing all visits
INFO [2017-03-23 19:28:53] Archived website id = 1, period = month, 0 segments, 2365051 visits in last 5 months, 671285 visits this month, Time elapsed: 335.176s
INFO [2017-03-23 19:28:53] Will pre-process for website id = 1, period = year, date = last5
INFO [2017-03-23 19:28:53] - pre-processing all visits
INFO [2017-03-23 19:28:54] Archived website id = 1, period = year, 0 segments, 2365051 visits in last 5 years, 2365051 visits this year, Time elapsed: 1.779s
WARNING [2017-03-23 19:28:54] /usr/www/users/…/piwik/libs/Zend/Db/Statement/Pdo.php(228): Warning - PDOStatement::execute(): MySQL server has gone away - Piwik 3.0.2 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)
WARNING [2017-03-23 19:28:54] /usr/www/users/…/piwik/libs/Zend/Db/Statement/Pdo.php(228): Warning - PDOStatement::execute(): Error reading result set’s header - Piwik 3.0.2 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)

[Zend_Db_Statement_Exception]
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away

[PDOException]
SQLSTATE[HY000]: General error: 2006 MySQL server has gone away

core:archive [–url="…"] [–force-all-websites] [–force-all-periods[="…"]] [–force-timeout-for-periods[="…"]] [–skip-idsites[="…"]] [–skip-all-segments] [–force-idsites[="…"]] [–force-periods[="…"]] [–force-date-last-n="…"] [–force-date-range[="…"]] [–force-idsegments="…"] [–concurrent-requests-per-website[="…"]] [–disable-scheduled-tasks] [–accept-invalid-ssl-certificate] [–php-cli-options[="…"]]


The database shows ~5,585,110 entries for “piwik_log_link_visit_action” and ~2,334,684 entries for “piwik_log_visit”. I think, it’s too much…