locked
Wordpress on linux App Service - too slow response times RRS feed

  • Question

  • Hi,

    We are testing App Services in order to run a WordPress on Linux site. The site was already up, but we are having slow response times, between 1 to 10 seconds or sometimes more. 

    The configuration of the Web App Service is P1V2 (210ACU, 3,5GB memory) with an basic Azure Database for MySQL (2vcores, 5GB storage). Configuration that I think would be right to have good response for one guy testing the page.

    What could be the cause of the problem?


    Cristian L Ruiz

    Wednesday, October 23, 2019 2:15 PM

All replies

  • Hi Cristian,

    I understand you are experiencing slowness. I have a few queries before we start troubleshooting:

    1. Was the response time less before? If yes, when did slowness increase?

    2. Have we directly deployed to App service azure and checking for response time or was the site already working onpremise or somewhere else?

    3. All the pages are slow or few pages?

    4. What is functionality of the site for the page which has higher response time?

    Could you share with us your site name or subscription ID indirectly here

    Thursday, October 24, 2019 9:22 AM
  • Thanks for your reply.

    1. Was the response time less before? If yes, when did slowness increase?

    The site was uploaded this last monday, and inmediately it had slow response. 

    2. Have we directly deployed to App service azure and checking for response time or was the site already working onpremise or somewhere else?

    The site was developed onpremise and was working fine, and this last monday was uploaded to App Service platform.

    3. All the pages are slow or few pages?

    In general all pages, but some slower than others.

    4. What is functionality of the site for the page which has higher response time?

    One with higher response time is the home page, informational.


    Cristian L Ruiz

    Thursday, October 24, 2019 1:25 PM
  • How much is the data going in and out and CPU time? 

    Two possible reasons

    1) Your processing power is low. Try scaling up and see the response time

    2) Your wordpress is writing and reading at higher rate and is stuck in a bottleneck. Best option is using CDN etc


    Rahber
    @Rahber

    Friday, October 25, 2019 7:47 AM
  • Hi Cristian,

    We should use:

    1. wp-super cache plugin

    2. CDN

    3. Disable plugins which are not necessary

    4. wp image 0.72 which uses nginx (should be faster for static content) 

    Also , please check if the app and database are in the same region.




    Friday, October 25, 2019 10:13 AM
  • How much is the data going in and out and CPU time? 

    Two possible reasons

    1) Your processing power is low. Try scaling up and see the response time

    2) Your wordpress is writing and reading at higher rate and is stuck in a bottleneck. Best option is using CDN etc


    Rahber
    @Rahber

    How much power would I need to run a simple website? I cannot scale up more tan the actual configuration because now is too expensive just to run a single site.


    Cristian L Ruiz

    Friday, October 25, 2019 2:00 PM
  • Hi Cristian,

    We should use:

    1. wp-super cache plugin

    2. CDN

    3. Disable plugins which are not necessary

    4. wp image 0.72 which uses nginx (should be faster for static content) 

    Also , please check if the app and database are in the same region.




    What is CDN? is posible to add it whitout extra costs?

    Database is in same región tan web service.


    Cristian L Ruiz


    Friday, October 25, 2019 2:01 PM
  • Azure Content Delivery Network (CDN) is a global CDN solution for delivering high-bandwidth content. It can be hosted in Azure or any other location. With Azure CDN, you can cache static objects loaded from Azure Blob storage, a web application, or any publicly accessible web server, by using the closest point of presence (POP) server. Azure CDN can also accelerate dynamic content, which cannot be cached, by leveraging various network and routing optimizations

    CDN: https://docs.microsoft.com/en-us/azure/cdn/

            https://docs.microsoft.com/en-us/azure/cdn/cdn-overview

    Pricing: https://azure.microsoft.com/en-in/pricing/details/cdn/

    Tuesday, October 29, 2019 9:26 AM
  • But why is necessary to use another feature? Is not App Service powerful enough just to run a simple informational site with WordPress? 

    Cristian L Ruiz

    Friday, November 8, 2019 7:05 PM