How many apps are on that Web App Plan (assuming it is a premium plan)? If more than one, I believe this will impact the total memory assignment for each app, outside the default so that's is something to keep in mind - you may want to create a new app plan if that is the case.
You're right to use the app setting WEBSITE_MEMORY_LIMIT_MB
as this is the necessary app setting to increase beyond the default limit. Double check the value is a valid MB number. E.g. 4GB will be 4096
. I don't believe the container memory one is necessary so maybe remove this, and restart the app and see how that goes.
Read more here: https://learn.microsoft.com/en-us/azure/app-service/configure-custom-container?pivots=container-windows&tabs=debian#customize-container-memory
Memory check
In addition, you can view the memory assignment instantly via the backend KUDU service:
- Locate your App > Under Development Tools on the left find Advanced Tools > Go > Process Explorer and you should be able to view the memory allocation.
Let us know how you get on, if you need more help drop a comment. If this solves your issue, feel free to mark as an accepted answer. Cheers!