Usage of XTM Cloud resources


Disk usage

  1. To check total disk usage and inodes usage, run the following commands: (note that we assume that XTM Cloud is installed in its default location): du -sch /xtm /servers /var/lib/pgsql/.

  • Sample output for the command:

16G /servers

5.9G /xtm

85M /var/lib/pgsql/

22G total

  1. Now check for inodes in the same way: du -sch --inodes /servers /xtm /var/lib/pgsql/.

  • As a result, the total number of inodes used by these directories is shown:

13K /servers

47K /xtm

2.6K /var/lib/pgsql/

62K total

Memory usage

  1. The most basic check you can perform is to run this command: top -u xtm and then check the RES column – which shows the "Resident size" for processes run by the XTM Cloud user (the application runs with the XTM Cloud user privileges).

  2. To check how much memory is used by the XTM Cloud application in more detail, run the following command: smem -tp -P java -c "name pss".

  • Sample output of the command:

Command PSS

python /bin/smem -tp -P jav 0.16%

/usr/bin/java -Xms64M -Xmx1 8.23%

/usr/bin/java -Xms64M -Xmx1 8.60%



In this example, we use percentage values instead of numerical values and we restrict the list to java processes. You can tailor it to your own needs with many switches – refer to man smem. Here we have also shown the main component usage.


To get the actual usage, include java processes and also, for example, the httpd service as it also runs simultaneously with the application, and then total all the values.

CPU usage

  1. As with the memory example, to count total CPU usage, the CPU times for all components in XTM Cloud, in %, need to be totaled: java processes, user, and httpd processes. It can be achieved by running the top command.

  • Sample output of the command:

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 4723 xtm 20 0 4573008 331828 16596 S 0.7 8.6 0:33.90 java 10485 root 20 0 61848 2320 1584 R 0.7 0.1 0:00.25 top 4722 xtm 20 0 4578148 340276 16604 S 0.6 8.8 0:38.07 java
  1. There you need to total the % CPU usage for java, httpd and additional user processes to get the total value.