Thanks for reply! For your ask on a 'way to keep this memory cleaned'
.
- You would need to restart the webapp to clear out the temp space.
- In case restarting the specific webapp does not help, you would need to restart all the App Services present in that App Service Plan to clear out the temp space.
- Also you would need to eventually split up the App Service Plan since the amount of Host Space available on each type of App Service Plan is fixed and it is distributed within all the apps present in the App Service Plan.
Check document link: https://azure.github.io/AppService/2019/05/21/App-Service-Plan-Density-Check.html - Further as a best practice, you would need to work on minimizing the size of Docker Container by choosing appropriate base image.
Hope this helps. Let us know.