Optimize WHM cpanel tối ưu hóa

Optimize WHM cpanel tối ưu hóa

1. Disable Mailman


2. Tweak Spamassassin Utility

SpamAssassin đứng cạnh Mailman về tiêu thụ bộ nhớ. Lý do chính cho SpamAssassin để tiêu thụ bộ nhớ cao nằm trong các cài đặt mặc định của daemon spamd, mà không hạn chế số lượng các quá trình tạo ra nó khi khởi động. Kết quả là, nó đi vào việc tạo ra các quy trình / quy trình con mới mà không giết những người mà đã được tạo ra trước đó. Mỗi một quy trình mới tiêu thụ bộ nhớ và do đó việc sử dụng bộ nhớ được đa gấp.
Để ngăn chặn điều này, bạn có thể vô hiệu hóa hoặc hạn chế SpamAssassin daemon spamd từ việc tạo ra nhiều hơn một số lượng nhất định các quá trình ở start-up. Vô hiệu hóa SpamAssassin không phải là một ý tưởng tốt vì nó có thể dẫn bạn đến nhận được ngập nước với các email spam; do đó chúng tôi sẽ kết hợp các phương pháp tiếp cận thứ hai, tức là, hạn chế daemon spamd từ việc tạo ra hơn 2 quá trình ở start up.
Duyệt qua các mục WHM menu có sẵn ở phía bên tay trái trên trình duyệt web của bạn và tìm kiếm "Manage Plugins" phần. Cuộn xuống hơn nữa cho đến khi bạn nhận được "Setup spamd Startup Configuration" sub-menu. Một khi bạn click vào nó, nó sẽ hiển thị bốn lựa chọn cho bạn lựa chọn. Lựa chọn thứ hai sẽ đọc "Maximum Children" (không bị lẫn lộn, nó không có gì để làm với kế hoạch gia đình) - giá trị bằng 2. Lưu cấu hình.


3. Increase The Duration of Running Mail Server Queue

Bất cứ khi nào hàng đợi mail server của bạn chạy, nó làm tăng tải trọng trên máy chủ web của bạn, trong lần lượt thỏa hiệp về hiệu suất của CPU bộ nhớ hệ thống. Bằng cách giảm tần suất chạy hàng đợi mail của bạn, bạn có thể trích xuất các hiệu suất tối ưu trên các gói máy chủ của bạn.

Server Configuration >> Tweak Settings >> Mail. By default, “Number of minutes between mail server queue runs” will be set to “60”. Change the value to “120” and save the configuration. As per the default settings, the mail server queue would run 24 times a day, but with this tweak, you have set it to run only 12 times per day – which is bound to conserve significant server resources.

4. Set Catch-All To ‘Fail’ (Default Email)



WHM’s CatchAll feature stores a copy of all the domain emails (directed to multiple email IDs) in a common mailbox known as Default Email Address. However, it usually consumes high CPU and disk space. It is highly recommended to change the default settings to “Fail” to optimize your resource consumption.

To make this tweak work, go to Go to WHM >> Server Configuration >> Tweak Settings >> Mail. The very first option will be to set up your Default/catch-all email. The default status will be set to “System account default (or localuser)”. Change your selection to “Fail” and click on the “Save” button.

Once you are done with configuring all the four VPS Performance Optimization tweaks mentioned above, you would observe considerable improvement in the overall performance of your web server. You can further fine tune the resource consumption with the help of the below given tweaks, although they are not as significant as the first four tweaks discussed so far.

5. Conserve Memory At The Expense of Using More CPU/Diskio

This change of settings will come handy if your server consumes memory to a significant extent, but at the same time, the CPU/Disk utilization is on the lower side.

Go to Server Configuration >> Tweak Settings >> System and enable the option “Conserve Memory at the expense of using more cpu/diskio.” It can marginally reduce your processing speed and you can observe a slight increase in CPU utilization.

6. Run Cron Jobs At Off-Peak Hours

Cron jobs consume both memory and CPU resources, which can in-turn affect your web server performance. It is highly recommended to schedule the cron jobs to run at off-peak hours, so that the impact of performance drop can be minimized.

Go to WHM >> Manage Plugins >>Configure cPanel Cron Times to alter the scheduled cron time.

7. Turn Off BoxTrapper

Another VPS Performance Optimization technique is to turn off BoxTrapper in your email settings. It is a spam trap which prevents unwanted mails from clogging your inbox. Disabling this feature will free up CPU as well as RAM. Go to WHM >> Server Configuration >> Tweak Settings >> Mail and select “Off” radio button corresponding to the first line item “Enable BoxTrapper Spam Trap”.

8. Avoid Using Tomcat On A VPS

It’s a known fact that Tomcat consumes very high amount of physical memory (RAM). It is highly recommended not to use Tomcat with VPS hosting, as it can cause significant performance drop on your web server.






+ Tắt 1 số dịch vụ không sử dụng
service xfs stop
chkconfig --level 2345 xfs off
service iscsi stop
chkconfig --level 2345 iscsi off
service iscsid stop
chkconfig --level 2345 iscsid off
touch /etc/cpdavddisable
/usr/local/cpanel/etc/init/stopcpdavd

+ Tắt XFS

XFS is a X font server.

service xfs stop
chkconfig --level 2345 xfs off

+ ISCSI and ISCSID

Used to mount remote ISCSI targets

service iscsi stop
chkconfig --level 2345 iscsi off
service iscsid stop
chkconfig --level 2345 iscsid off

+ Disable cPanels webdav

cPanel cung cấp một dịch vụ WebDAV, người rất hiếm khi sử dụng này

touch /etc/cpdavddisable
/usr/local/cpanel/etc/init/stopcpdavd
CSKH 24/7
(028)66 82 82 99
Kỹ thuật 247
0968 592 399

Tư vấn 1
0939 861 299
Tư vấn 2
0919 383 299
Gọi
 Sales
 Sales
 Tech