Description
Preconditions (*)
- Magento CE 2.3.4
- PHP 7.2
Steps to reproduce (*)
- Upgrade existing store from 2.2.9 to 2.3.4
Expected result (*)
- Site and server continue to function as prior to upgrading
Actual result (*)
- Huge increase in CPU and RAM usage.
You can clearly see the increased load on our system graphs here. It has forced the server to start using swap. Graphs showing 12 hours before and after the M2.2.9 -> 2.3.4 upgrade. The upgrade was done at Tue 4 @ 18:00.
Same graphs but for 3 days before and 4 days after the M2.2.9 -> 2.3.4 upgrade.
I did some benchmarking on the memory and duration of the cron before and after the upgrade:
- 2.2.9 Completed in 2.44 seconds using 330MB RAM
- 2.3.4 Completed in 6.15 seconds using 714MB RAM
That is over double the time and memory used to do the same thing.
Measured with while [ true ] ; do echo $(date +%s.%3N ; free | tail -n2 ) ; sleep .1 ;done | tee cron.csv
and plotted in libre office calc.
2.2.9:
2.3.4:
I see similar issues here but the solutions do not make much difference:
I did truncate the cron table Wed morning... you can see on the graphs the swap usage is lowered slightly but creeps back up over the next few days, so although that may well also be an issue, I think the increase in mem usage is something different.