How to fix low disk space in Web App

SUSHI 5 Reputation points
2024-06-18T22:44:06.44+00:00

Can you please tell me, I have Azure Service App (Linux plan) Premium v3 P0V3.

In the plan description it says that they give 250G.

I have 1 Web App in this plan with 2 slots (prod/stage), running Web App Single Container from ACR. When I SSH into the Web App and see df -h

root@aidwn24nad2:/var/log# df -h
Filesystem Size Used Avail Use% Mounted on
overlay 49G 43G 3.8G 92% /
tmpfs 64M 0 64M 0% /dev
tmpfs 2.2G 0 2.2G 0% /sys/fs/cgroup
shm 62M 8.0K 62M 1% /dev/shm
/dev/sda3 63G 13G 47G 22% /var/ssl
/dev/sdb1 49G 43G 3.8G 92% /etc/hosts
devtmpfs 4.0M 0 4.0M 0% /dev/tty
tmpfs 2.2G 0 2.2G 0% /proc/acpi
tmpfs 2.2G 0 2.2G 0% /proc/scsi
tmpfs 2.2G 0 2.2G 0% /sys/firmware
If anything the image weighs about 1.5-2G.

Please tell me where to find what takes up most of the space. If I use ncdu/df -h on / it shows 2-3G occupied. As I understood these 250G are distributed somewhere else, but I did not understand how.

In general, if anyone knows how to clear or how this space works in general, could you give me a hint, please? I'm so confused...

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,946 questions
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 17,731 Reputation points Microsoft Employee Moderator
    2024-07-01T18:20:10.47+00:00

    @SUSHI Based on the output of the df -h command, it looks like you have the following space available on your filesystems:

    • / (overlay): 3.8G available out of 49G
    • /var/ssl (/dev/sda3): 47G available out of 63G
    • /etc/hosts (/dev/sdb1): 3.8G available out of 49G

    Summing up the available space:

    3.8G+47G+3.8G=54.6G

    So, you currently have approximately 54.6GB of free space.

    Also keep in mind that a slot is a whole other web app behind the scenes. You basically have to double the space used.

    Based on the df -h output you provided, here’s a breakdown of the space you’re using on each filesystem:

    • / (overlay): 43G used out of 49G
    • /var/ssl (/dev/sda3): 13G used out of 63G
    • /etc/hosts (/dev/sdb1): 43G used out of 49G

    Summing up the used space:

    43G+13G+43G=99G

    So, you are currently using approximately 99GB of space for prod. This also means that dev is also using 99GB. So 99GB+99GB=198GB

    198GB (used)+54.6GB (free space) = 252.6GB

    This usage seems normal. Let me know if you have any further questions. Otherwise, I would appreciate it if you could accept this answer.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.