• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Add/Remove domain/subdomain/domainalias taking about 3-5 minutes

Rehman

New Pleskian
Add/Remove domain/subdomain/domainalias
All actions mentioned above are taking too long around 3-5 minute per domain. I have tried adding domain from command line too and its same.
/usr/local/psa/bin/domalias -c zzexample.com -domain example.com -status enabled -mail false -seo-redirect false -dns false

This issue started after upgrading plesk from 12.0 to 12.5
In top/htop I saw that every time when I add/remove a domain/alias/subdomain a postconf/postfix process starts with 100% CPU usage and takes a lot of time with random commands run one by one. some are mentioned below.

/usr/sbin/postconf -c /etc/postfix -h daemon_directory
/usr/sbin/postconf -c /etc/postfix -h data_directory
/usr/sbin/postconf -c /etc/postfix -h multi_instance_directories
/usr/sbin/postconf -c /etc/postfix -h command_directory
/usr/sbin/postconf -c /etc/postfix -h html_directory
/usr/sbin/postconf -c /etc/postfix -h mail_owner
/usr/sbin/postconf -c /etc/postfix -h mailq_path
/usr/sbin/postconf -c /etc/postfix -h manpage_directory
/usr/sbin/postconf -c /etc/postfix -h newaliases_path
/usr/sbin/postconf -c /etc/postfix -h queue_directory
/usr/sbin/postconf -c /etc/postfix -h readme_directory
/usr/sbin/postconf -c /etc/postfix -h sample_directory
/usr/sbin/postconf -c /etc/postfix -h sendmail_path
/usr/sbin/postconf -c /etc/postfix -h setgid_group

Tried "plesk repair all" but no effect.

I have searched a lot about it but found nothing. Need help.
 
Have you tried to optimize mysql database at least?
 
Thank you for your reply.
Yes I have tried it too. I read too many log files also but no error found. My server is also performing well besides above mentioned problem. I have 13 domains, 3 webspaces and 900+ aliases on just one domain. server load always remain below 0.50

Intel(R) Xeon(R) CPU E3-1225 V2 @ 3.20GHz
32 GB ram
SSD disk.

I don't know what other data I have to provide because its strange issue to me.
Only too many postconf processes starts and ends step by step, take too long and take one core 100% with no noticeable disk IO usage. All other processes usage is normal during adding domains.

/usr/sbin/postconf -h config_directory
/usr/sbin/postconf -h alias_database
/usr/sbin/postconf -c /etc/postfix -h daemon_directory
/usr/sbin/postconf -c /etc/postfix -h data_directory
/usr/sbin/postconf -c /etc/postfix -h multi_instance_directories
/usr/sbin/postconf -c /etc/postfix -h command_directory
/usr/sbin/postconf -c /etc/postfix -h html_directory
/usr/sbin/postconf -c /etc/postfix -h mail_owner
/usr/sbin/postconf -c /etc/postfix -h mailq_path
/usr/sbin/postconf -c /etc/postfix -h manpage_directory
/usr/sbin/postconf -c /etc/postfix -h newaliases_path
/usr/sbin/postconf -c /etc/postfix -h queue_directory
/usr/sbin/postconf -c /etc/postfix -h readme_directory
/usr/sbin/postconf -c /etc/postfix -h sample_directory
/usr/sbin/postconf -c /etc/postfix -h sendmail_path
/usr/sbin/postconf -c /etc/postfix -h setgid_group
 
Anyone? Any suggestions??
I need it to be solved Because I have to add/remove more than 100 domainaliases daily and because of this issue its really takes a lot of time. it was just fine with plesk 12.0. I didn't change any setting in server except upgrading plesk to 12.5 and this issue started. Help needed please. thank you
 
If you can find nothing interesting in logs, I suggest you contact Plesk Support Team. They will investigate problem directly on your server.
 
I found that "service postfix start" taking too long and all above mentioned processes starts when I start postfix service. It means that when I add/remove domain in plesk . It sends a signal to restart postfix and postfix start is taking all that time.
Is there anything to check in postfix why its taking too long?

below are maillog when restart postfix. you can see time between stop and start.
Dec 10 13:02:40 plesk postfix/postfix-script[6379]: stopping the Postfix mail system
Dec 10 13:02:40 plesk postfix/master[6351]: terminating on signal 15
Dec 10 13:05:32 plesk postfix/postfix-script[6473]: starting the Postfix mail system
Dec 10 13:05:32 plesk postfix/master[6475]: daemon started -- version 2.11.5, configuration /etc/postfix
 
Last edited:
Back
Top