...
Sample output for the command:
16G /servers 5.9G /xtm 85M /var/lib/pgsql/ 22G total |
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
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).
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% ------------------------------------- 16.99% |
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.
Note |
---|
IMPORTANT! 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
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.
...