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.
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
How do I configure GRUB to see all of my memory?
You can specify the amount of memory on your system if your computer is not recognizing all of it. For example if your system says you only have 128 MB of RAM and you know for sure you have 256 MB, then you can specify that in your grub.conf file, located at /boot/grub/grub.conf
What you want to do is add the following syntax mem=M to the kernel line of your grub.conf file. So for instance if you were specifying your system had 256 MB in the grub.conf file, it would look something like this.
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Enterprise Linux AS (2.4.21-15.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-15.EL ro root=LABEL=/ mem=256M
initrd /initrd-2.4.21-15.EL.img
title Red Hat Enterprise Linux AS (2.4.21-9.EL)
root (hd0,0)
kernel /vmlinuz-2.4.21-9.EL ro root=LABEL=/ mem=256M
initrd /initrd-2.4.21-9.EL.img
Fix For Memory Error in Ensim Pro for Linux Version
Restore of appliance, reseller, site and user fails with the “MemoryError” if the size of the backup tar file is greater than the aggregate size of RAM and swap space.
Instructions to fix MemoryError exception occuring during import sites.
Resolution: Add extra swap space to the server before doing the restore. The extra swap space is added to the server by setting up a new swap file and enabling swapping on it.
Instructions to setup swap file:
Select the partition where you want to create the swap file. This partition must have free disk space to create the swap file.
Create a file for swap with the following command (# is shell prompt):
#dd if=/dev/zero of=/var/swapfile bs=1024 count=
Where = number of 1024 blocks required. If count=1024000 size of /var/swapfile will be 1024* 1024000 = 1 GB.
Setup an extra swap with the following command:
Enable “/var/swapfile” for swapping with the following command:
Verification: The file “/proc/swaps” must contain the entry for the swap file “/var/swapfile”. If this entry is not present, then swapping has not been enabled for the swap area.
Restore can be performed after the extra swap file has been enabled for swapping.
Instructions for deleting the swap file after import:
Turn off swapping for file “/var/swapfile” with the following command:
Delete the file “/var/swapfile” with the following command:
Shared Memory Pages
To facilitate data sharing, you can create shared memory pages. Multiple processes can read and write to and from a common shared memory area. The kernel maintains and administers the shared memory areas and allows individual processes access to the shared area.
The special ipcs command allows you to view the current shared memory pages on the system. Here’s the output from a sample ipcs command.
root@dell:~# ipcs -u
—— Shared Memory Status ——–
segments allocated 6
pages allocated 576
pages resident 528
pages swapped 0
Swap performance: 0 attempts 0 successes
—— Semaphore Status ——–
used arrays = 0
allocated semaphores = 0
—— Messages: Status ——–
allocated queues = 0
used headers = 0
used space = 0 bytes
Each shared memory segment has an owner that created the segment. Each segment also has a standard Linux permissions setting that sets the availability of the segment for other users. The key value is used to allow other users to gain access to the shared memory segment.
-m shared memory segments
root@dell:~# ipcs -m
—— Shared Memory Segments ——–
key shmid owner perms bytes nattch status
0×00000000 327680 buddy 600 393216 2 dest
0×00000000 360449 buddy 600 393216 2 dest
0×00000000 262146 buddy 600 393216 2 dest
0×00000000 294915 buddy 600 393216 2 dest
0×00000000 393220 buddy 600 393216 2 dest
0×00000000 425989 buddy 600 393216 2 dest