Row evolution lot loading or using all memory

When going to Behavior > Pages and clicking on the “Open row evolution” icon, the popup doesn’t load anymore.
It either loads 10+ minutes (without success) or breaks with exhausted memory.

Matomo encountered an error: Allowed memory size of 10737418240 bytes exhausted (tried to allocate 4444840 bytes) (which lead to: Allowed memory size of 10737418240 bytes exhausted (tried to allocate 4444840 bytes))

It used to work but it doesn’t anymore. Could be it started with 5.1 but I can’t say.
Matomo version: 5.1.2
MySQL version: 8.0.35
PHP version: 8.1.16

10GB of memory is not low, but it depends on data size (we use 24GB). maybe try to add more to memory_limit in php.ini and see if it helps? make sure your system has enough memory…

I guess you are using cron archiving? I am not sure if row evolution benefits from this, but I think so.

what else comes to mind? you could try to reduce DB size be purging old data, reduce date range in the row evaluation report, reduce segments (if you use them).
Not sure if these are really connected to your problem, though.

Yes, I’m using cron.
I noticed when it’s loading indefinitely, it also dies with exhausted memory.

I’ve increased it to 15GB now and that’s still not enough.
Not sure why though as it used to work fine before. The site doesn’t have more hits than before. We do have some old data but I don’t think it should make a difference as using a different site on the same database works.
I don’t have more memory to spare now unfortunately.