Websites slow after migrating to new higher spec server- need some advice

bz87

Member
Jul 22, 2021
15
1
3
world
cPanel Access Level
Root Administrator
Hi again!

So i recently successfully migrated 5 of my Cpanel accounts from one WHM to another to a new much higher spec VPS (32GB Ram) from a 4GB ram VPS using the transfer tool.

Each of my cpanel accounts has an email marketing application that schedules daily newsletters set to only 100 email/min cron job and was doing pretty well(performance wise) with the old server.

My issue is that after the transfer to the new server (32GB ram) the email newsletter are being sent out with so much delays for example 1000 emails which usually takes 10-12 mins to send is now taking hours.

I suspect it could be my WHM settings that I need to fix or tweak somewhere since I installed a new WHM for this transfer however when i checked i dont think i missed anything.

EXTRA INFO
- My memory limit in MultiPHP INI Editor is set to 128M in this WHM, Previous WHM (64M)

Appreciate any advice


and as always thanks!
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,496
1,009
313
cPanel Access Level
Root Administrator
Hey there! It would help to know where the delay is. Is there a delay in Exim due to messages getting stuck in the queue? Is there a CPU delay that is keeping the mailing list from being processed? If you check the WHM >> Mail Queue Manager page, do you see messages sitting there waiting to be sent?
 
  • Like
Reactions: bz87

bz87

Member
Jul 22, 2021
15
1
3
world
cPanel Access Level
Root Administrator
HI

If you check the WHM >> Mail Queue Manager page, do you see messages sitting there waiting to be sent?

Nope nothing here,

FYI im using Mailwizz Email marketing application to manage the emails and using a 3rd party SMTP service(connected to mailwizz) to deliver the emails.

I think it's more of a memory/ server capacity issue thats causing it to move slow?

Again thanks for your reply
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,496
1,009
313
cPanel Access Level
Root Administrator
Thanks for the additional details.

The only thing I could think of that would be relevant is the PHP process memory limit, set in WHM >> Multi PHP INI Editor. If that is the same value as the previous system and you're still running into those errors, it would take some additional troubleshooting of the Mailwizz application to further isolate the issue.
 

bz87

Member
Jul 22, 2021
15
1
3
world
cPanel Access Level
Root Administrator
Thanks!


BTW

1) how do i set memory limit to MAX in WHM >> Multi PHP INI Editor? how do I find out what is the maximum value i can put here?

Also

2)how do i put to "no memory limit" do i just input value as "-1" or "-1M"
Memory limit.png

Thanks as always
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,496
1,009
313
cPanel Access Level
Root Administrator
The max value would be the total value of RAM in your server, which you could find with the "free -m" command or with the WHM >> Server Information page.

Using "-1M" would be the correct way to set this to unlimited. Please remember that if you do that, one bad PHP process would have the ability to take down the entire system.
 
  • Like
Reactions: bz87

bz87

Member
Jul 22, 2021
15
1
3
world
cPanel Access Level
Root Administrator
Thanks CPrex

SO based on my server information below what is the max value here?

Assuming its the TOTAL value

31,952,244 would that be 31,952M?

Screenshot 2021-08-25 at 9.20.17 PM.png

once again thanks!!
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,496
1,009
313
cPanel Access Level
Root Administrator
Yes, although you could just put 32G in the configuration as well, as "G" is supported.

I really can't stress enough how much of a bad idea I think this is, and I don't think it will help the speed of the site. I suppose it would be fine for testing to see if you do notice an improvement, but it's not something that should be left in place long-term on a production system.
 
  • Like
Reactions: bz87

quietFinn

Well-Known Member
Feb 4, 2006
1,339
151
193
Finland
cPanel Access Level
Root Administrator
So i recently successfully migrated 5 of my Cpanel accounts from one WHM to another to a new much higher spec VPS (32GB Ram) from a 4GB ram VPS using the transfer tool.
I think it's more of a memory/ server capacity issue thats causing it to move slow?
You migrated from a server with 4GB memory to a server with 32GB memory, and you think it's a "memory/ server capacity issue".
That does not make sense.
Are the emails sent directly to Mailwizz, and not using Exim in your server?
 
  • Like
Reactions: cPRex