One of the things that you may want to know is how much disk space your web apps are using on your server. This can help you monitor your disk usage and optimize your web app performance.

Using the RunCloud Dashboard

The RunCloud dashboard provides you with a graphical and numerical overview of your disk space usage on your server, and on your web apps. You can use the dashboard to quickly check the disk space usage of your web apps in two ways:

Server Health Section

This section shows you the total disk space available on your server, and how much of it is used by all of your web apps combined. You can see this section on the main page of your RunCloud dashboard, under the Health tab.

Web App Summary Section

This section shows you the directory size of each individual web app that you have on your server. You can see this section on the summary page of each web app, under the Directory Size tab.

Using the Command Line

The command line gives you more control and flexibility over how you identify the disk space usage of your web apps on your server. You can use the command line to run various commands that can show you the disk space usage of your web apps in different ways.

The main command that you need to use is du, which stands for disk usage. This command can show you the size of files and directories on your server.

To use the du command, you need to log in to your server via SSH using your preferred SSH client. Then, navigate to the directory where your web apps are located, which is usually /home/{username}/webapps/{webappname}, where {username} is your web app username and {webappname} is your web app name.

Here are some examples of how you can use the du command to find out the disk space usage of your web apps:

  1. To see only the total size of a web app directory, run:
du -sh .

This will show you the size of the current directory in a human-readable format, such as MB or GB.

  1. To see the size of each file and folder in a web app directory, run:
du -sch * | sort -h

This will show you the size of each file and folder in the current directory in a human-readable format, sorted by size from smallest to largest. The -c option will also show you the total size at the end.

The above screenshot shows the size of each web app directory under /home/{user}/webapps in a human-readable format, sorted by size from smallest to largest.