Your software
My Mautic version is: 4
My PHP version is: 8.1
Your problem
My problem is:
Hey guys, i have a VPS server with 3CPU and 4GB ram,
And it seems like the cron of mautic:campaigns:update run it takes a lot of CPU (around 100% when combine with mariadbd):
Reduce your batches a lot, run the cron more frequently. The process takes all that memory and CPU because it loads all that in the memory and then it process it.
You can always try to run your cron manually and see if it really finishes in 1 min.
But 3 CPU with 4 GB mem is good for a max 20-30k list, not higher one. Also don’t forget - if you send lot of emails, fast, you’ll have to be able to manage pageviews and email opens.
Thanks, i have around 7-8k people in the list and only around 3k active (the others unsubscribe).
On my tests i had to limit the contacts to 4000 in the cron and it finish in about 30 sec to run without the contact limit it run for more than a minute.
The problem is coming from this cron mautic:campaigns:update but it seems like i wasn’t able to find a way to make it take less cpu when running (tried to play around with stoping segemnts and campaigns but it didn’t help).
If i reduce the contacts to 2000 the cron run faster and finish in less time but when it run it still take 100% cpu.
You are Using cyber panel than I will assume that you are using open lite speed ? ??? Not sure
But if you are using open lite speed sever
I would say this is a some familiar behavior of open lite speed of using higher cpu for some applications.
Not sure why but I end up going back Apache.
Just want to give a hint you if you are using open lite speed
Good luck