Can I increase swap space in app services?

Tobias Laving 6 Reputation points
2023-09-05T09:19:43.8933333+00:00

Hello,

I am wondering if I can increase the swap size on a app service?
We run both linux and windows as OS

On the linux box I can see that we have 2gb configured

             total        used        free      shared  buff/cache   available
Mem:          3.1Gi       1.7Gi       602Mi       201Mi       786Mi       985Mi
Swap:         2.0Gi       554Mi       1.5Gi

We have plenty of space however according to the service plan (250 gb)

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,768 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ben Gimblett 4,525 Reputation points Microsoft Employee
    2023-09-05T09:52:08.64+00:00

    Hi - thanks for the question.

    Not in so far as I'm aware as Kudu abstracts the underlying machine / OS capabilities (App service apps run in that sandbox)

    Also, you need to keep in mind the storage allocated to a plan is shared between worker VMs
    For more info please see the following
    https://github.com/projectkudu/kudu/wiki/Understanding-the-Azure-App-Service-file-system
    As you can see there is some access to the local VM disk but this is considered volatile

    You can alter the way App service works with regard to storage, which is useful for edge case use-cases. See https://learn.microsoft.com/en-us/azure/app-service/overview-local-cache for regular web apps and https://github.com/Azure-App-Service/KuduLite/wiki/App-Cache for plans which run containers

    However this does not relate to OS swap space.

    1 person found this answer helpful.

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.