cPanel Daily Process Log (formerly CPU/Memory/MySQL Usage)
(Main –>> Server –>> Daily Process Log)
This feature displays information about your server’s consumption of processing power and memory, averaged over the course of the selected day.
The information is divided into rows and columns. Each row represents a different process running on your server while each column represents the processes’ associated parameters.
The processes running on your server will depend on how you have configured WHM and what other daemons and applications you install on your server.
The column information is divided into 5 categories:
User — Displays the name of the user running the process. For example, if you are logged into your server as “root,” then that username will appear in this field for any processes you initiate.
Domain — Displays the domain name associated with your cPanel user accounts.
%CPU — Displays the average daily percentage of the CPU’s processing power used by the corresponding process.
%MEM — Displays the average daily percentage of RAM used by the corresponding process.
MySQL Processes — Displays the average number of MySQL processes associated with the corresponding process for today.
As with the database counts, the disk usage calculation is handled by /scripts/update_db_cache which executes every 4 hours. This script is executed upon enabling the Tweak Setting. Administrators may also execute this script to recalculate the figures. The disk usage figures are stored in /var/cpanel/datastore/mysql-disk-usage and /var/cpanel/datastore/postgres-disk-usage. The file contents are a colon (:) separated list of user names and
figures in bytes.
Example “mysql-disk-usage contents”
[~]# cat /var/cpanel/datastore/mysql-disk-usage
Support for /scripts/updatemysqlquota ends as of cPanel™ 11.25.0. Per this change /scripts/updatemysqlquota is no longer distributed with the product.
Disk Space Usage and bandwidth data (RRD)
In cPanel™ 11.25 the number of bandwidth data (RRD) files has increased. File names have also changed for clarity. There are now two files for each protocol and for the aggregate.
As noted above, the number of RRD files generated by the system increased with cPanel™ 11.25. With this comes an increase in the disk space used by /var/cpanel/bandwidth.
To prevent issues related to disk consumption by the RRD files, during the cPanel™ Update /usr/local/cpanel/bin/chk_bwrrd_space is used to examine the disk mount that contains /var/cpanel/bandwidth.
If insufficient disk space is detected then bandwidth generation is disabled.
Mailbox disk usage in Parallels Plesk Panel.
Problem: Parallels Plesk Panel shows incorrect statistics for the mailboxes on the domains. Domain mailboxes use less disk space then it is shown at the Control Panel. Disk usage for the mailbox is shown even if mail service is disabled on the domain.
Issue was discovered in Parallels Plesk Panel version 10.0.1.
In order to fix the issue apply hot-fix on the server.
Replace the file $PRODUCT_ROOT_D/admin/smb/application/controllers/StatisticsController.php with the file from the attachment below.
http://kb.parallels.com/Attachments/14688/Attachments/StatisticsController_linux.zip
The installation procedure is at http://kb.parallels.com/en/8083
After that recalculate statistics for the domains with the statistics utility. Statistics utility can be found in directory e $PRODUCT_ROOT_D/admin/sbin/.
/usr/local/psa/admin/sbin/statistics –calculate-one –domain-name=domain.tld
Reference : http://parallels.com/
Apache Memory Usage Restrictions in WHM
Main >> Service Configuration >> Apache Configuration
This function will calculate your apache memory usage based on your memory usage history and set a new memory limit for Apache processes. Limiting each process’ access to memory will increase the stability of your server but may reduce performance slightly. This is a limit for each Apache process, not for all Apache processes combined.
Click the Proceed button to activate this feature
For more information about this feature, see http://httpd.apache.org/docs/2.0/mod/core.html#rlimitmem
This will add a line to httpd.conf
#Rlimit added by apachelimits.pl
RLimitMEM 148015786