Auto-archiving crashing systematically for month archiving


Hi everyone !

I have an implementation of Matomo 3.8.1 using Debian. We have a huge traffic. In a month and a half, we gathered 7.5 GB of data. The server runs pretty well, but I recently implemented the auto-archiving with a crontab. It works well. However, when it gets to the month archiving process, it takes more than the 30 minutes -mentioned in the documentation- and it crashes asking for more memory with PHP. I already raised the memory to 512MB like the documentation proposed. I disabled it at the moment since it is causing me precious data loss…

Do you any advice to get this functionality operational?
Do I have to export my database and restart the tables because it is too big ?

Thank you in advance !