How can I see my server's resource usage statistics?


  • Applies to: DV
    • Difficulty: Medium
    • Time Needed: 15
    • Tools Required: Plesk administrator access, AccountCenter access
  • Applies to: DV 4.0
    • Difficulty: Medium
    • Time Needed: 15
    • Tools Required: Plesk administrator access, AccountCenter access

Overview

This article shows you the important system parameters for your DV server, as well as how to view your current resource usage.

View Resources From the AccountCenter

NOTE:

For instructions on using the Account Center’s Server Status tool, please see the following article:

NOTE:

Good news! If you have Fully Managed Hosting or CloudTech Security, then your DV has Monitoring!

View Resources From The Parallels Power Panel

  1. Log into your Parallels Power Panel. Visit https://example.com:4643/ (or https://xxx.xxx.xxx.xxx:4643/ - use your own domain or IP!) in your browser, and log in with your root user.
  2. Click on Resources, see Figure 1.

DV4PPP

Viewing resources on the DV is much simpler than on the 4.0 or 3.5. The 'user beancounters' memory management schema has been replaced with 'VSwap,' which simplifies the process of managing and analyzing resources.         

CPUParallels_Power_Panel___Resources___ub0erisawesome.info_1_20130404_105727

The first line (CPU Usage) shows the current percentage of CPU being utilized on your DV server.

The second line (CPU Load Average) shows the load average of your server. The three numbers represent the average load over the past 1, 5, and 15 minutes, respectively. Although a full discussion of interpreting load average is beyond the scope of this article, a lower number is better, and ideally, this number will not be above 1.0. A load of 1.0 on a standard Linux system indicates that it is operating at standard capacity, and a higher number would indicate that performance will begin to degrade. However, this figure should be interpreted slightly differently on your DV server, which has access to 16 processor cores. As such, a load higher than 1 is not a cause for immediate concern. A load above 3 or 4 indicates higher than average usage, and load of 8 or higher may indicate degradation of performance.

Memory

p2memory

This displays the current amount of memory being utilized on the server in MB, and also as a percentage of total memory available.  

  1. Log into your Parallels Power Panel. Visit https://example.com:4643/ (or https://xxx.xxx.xxx.xxx:4643/ - use your own domain or IP!) in your browser, and log in with your root user.
  2. Click on Resources, see Figure 1.

    DV4PPP

  3. Click through the tabs for the parameters: CPU, Disk, and Memory.

CPU Parameters cpu

  • cpuunits - Displayed using a positive integer number: this displays the minimal guaranteed share of the CPU time that your server will receive.
  • cpulimits - This is a positive number indicating the CPU time in percent the corresponding VPS is not allowed to exceed.

Disk Quota diskquota

  • diskinodes - Total number of disk inodes (files, directories, and symbolic links) allocated by the Virtual Private Server. When the number of inodes used by the Virtual Private Server hits the soft limit, the VPS can create additional file entries up to the hard limit during the grace period.
  • diskspace - Total size of disk space consumed by the Virtual Private Server. When the space used by the Virtual Private Server hits the soft limit, the VPS can allocate additional disk space up to the hard limit during the grace period.
  • quotatime - The grace period for the disk quota over-usage defined in seconds. The Virtual Private Server is allowed to temporarily exceed its quota soft limits for no more than the QUOTATIME period.
  • quotaaugidlimit  - Number of user/group IDs allowed for VPS internal disk quota. If set to 0, UID/GID quota will not be enabled.

UBC Parameters

The resources a Virtual Private Server may allocate are defined by the system resource control parameters, also called user beancounters (UBC). These parameters can be subdivided into the following categories: primary, secondary and auxiliary parameters.

  • The primary parameters are the starting point for defining the relative power of a Virtual Private Server.
  • The secondary parameters are dependent on the primary ones and are calculated from them according to a set of constraints.
  • The auxiliary parameters help improve fault isolation among applications in one and the same Virtual Private Server and the way applications handle errors and consume resources.

Listed below are the system resource control parameters.

  • The parameters starting with "num" are measured in integers.
  • The parameters ending in "buf" or "size" are measured in bytes.
  • The parameters containing "pages" in their names are measured in 4096-byte pages in the Virtuozzo 32-bit version and in 16384-byte pages in the Virtuozzo 64-bit version for IA-64 processors.

Primary UBC Parameters

primaryubc

  • numproc - The maximum number of processes the VPS may create.
  • numtcpsock - The number of TCP sockets (PF_INET family, SOCK_STREAM type). This parameter limits the number of TCP connections and, thus, the number of clients the server application can handle in parallel.
  • numothersock - The number of sockets other than TCP ones. Local (UNIX-domain) sockets are used for communications inside the system. UDP sockets are used, for example, for Domain Name Service (DNS) queries. UDP and other sockets may also be used in some very specialized applications (SNMP agents and others).
  • vmguarpages - The memory allocation guarantee, in pages. VPS applications are guaranteed to be able to allocate additional memory so long as the amount of memory accounted as privvmpages (see the auxiliary parameters) does not exceed the configured barrier of the vmguarpages parameter. Above the barrier, additional memory allocation is not guaranteed and may fail in case of overall memory shortage.
  • avnumproc - The average number of processes and threads.

Secondary UBC Parameters

secondaryubc

  • kmemsize - The size of unswappable kernel memory allocated for the internal kernel structures for the processes of a particular VPS.
  • tcpsndbuf - The total size of send buffers for TCP sockets, i.e. the amount of kernel memory allocated for the data sent from an application to a TCP socket, but not acknowledged by the remote side yet.
  • tcprcbuf - The total size of receive buffers for TCP sockets, i.e. the amount of kernel memory allocated for the data received from the remote side, but not read by the local application yet.
  • othersockbuf - The total size of UNIX-domain socket buffers, UDP, and other datagram protocol send buffers.
  • dgramrcvbuf - The total size of receive buffers of UDP and other datagram protocols.
  • oomguarpages - The out-of-memory guarantee, in pages. Any VPS process will not be killed even in case of heavy memory shortage if the current memory consumption (including both physical memory and swap) does not reach the oomguarpages barrier.

Auxiliary UBC Parameters

auxiliaryubc

  • privvmpages - The size of private (or potentially private) memory allocated by an application. The memory that is always shared among different applications is not included in this resource parameter.
  • lockedpages - The memory not allowed to be swapped out (locked with the mlock() system call), in pages.
  • shmpages - The total size of shared memory (including IPC, shared anonymous mappings and tmpfs objects) allocated by the processes of a particular VPS, in pages.
  • numfile - The number of files opened by all VPS processes.
  • numflock - The number of file locks created by all VPS processes.
  • numpty - The number of pseudo-terminals, such as an ssh session, the screen or xterm applications, etc.
  • numsiginfo - The number of siginfo structures (essentially, this parameter limits the size of the signal delivery queue).
  • dcachesize - The total size of dentry and inode structures locked in the memory.
  • numiptent - The number of IP packet filtering entries.

  For a detailed technical explanation of each limit, and for parameters not shown below:

  1. Visit the Parallels Virtuozzo manual
  2. Click on Index.

    Virtuozzo_index

  3. Find your parameter in the alphabetical listing.

    Oomguarpages

NOTE:

If you are continuously hitting red zones for UBC Parameters, you will want to either optimize or upgrade the server. Further investigation is required to determine the best course of action. Please see Troubleshooting DV Memory Issues for more details.