Azure App Service - Memory Consumption

_Julien Jalageas.AZ 21 Reputation points
2023-01-26T19:03:34.2766667+00:00

Hi,

I am in the process of migrating on-prem Tomcat Java webapps to Azure App Services. Currently, we have 30 web applications running on a tomcat with 6GB of allocated memory (4GB heap, 2GB permgen). However, we have deployed only 9 webapps on azure, each to their own Linux app service, all part of the same app service plan with Basic B3 pricing tier and 7GB of memory, and the memory usage is at 100% which has forced us to stop certain app services in order to test other ones. All 9 App Services have a Java 8 and Apache Tomcat 8.5 runstack.

Are app services more memory intensive than a traditional webapp? Does the app service plan require more memory than a traditional Tomcat server to run the same number of applications?

Thanks,

Julien Jalageas

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,173 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 19,151 Reputation points Moderator
    2023-02-03T02:32:31.88+00:00

    Hi @_Julien Jalageas.AZ ,

    Apologies for the delay in response.

    Yes, App Service plans are more memory-intensive than traditional web applications because they are designed to support multiple applications and provide high availability and scalability.

    App Service plans are designed to provide a scalable and reliable hosting environment for your web applications. The amount of memory required for your web applications will depend on the specific requirements of your applications and the workloads they are handling.

    The Basic B3 pricing tier provides 7GB of memory, which should be sufficient for running 9 web applications. However, if your applications have high memory usage or are experiencing heavy workloads, you may need to increase the memory allocation or upgrade to a higher pricing tier to support your applications.

    You can monitor the memory usage of your App Service plan Azure Monitor and autoscale individual web applications by enabling autoscaling by following the steps here: Get Started with Autoscale in Azure. Autoscale is a service that allows you to automatically add and remove resources according to the load on your application.

    Hope that helps. Please let us know if you have further questions.

     

    Thanks,

    Grace


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.