Can I increase swap space in app services?

Tobias Laving 1 Reputation point


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.
5,601 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ben Gimblett 2,185 Reputation points Microsoft Employee

    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
    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 for regular web apps and for plans which run containers

    However this does not relate to OS swap space.

    1 person found this answer helpful.