locked
Azure website consuming enormous CPU time RRS feed

  • Question

  • I have a very simple web page as below, no code-behind, no nothing:

    <%@ Page Language="C#" AutoEventWireup="true" %>
    
    <!DOCTYPE html>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>This is a test</title>
    </head>
    <body>
        <div>
        <h1>This is a test and nothing else.</h1>
        </div>
    </body>
    </html>

    The page is located on an application hosted on Azure websites in Shared Mode.  After ensuring that no one knows about this web site, I loaded this page once in a web browser.  I did this over three hours, 8pm-9pm, 9pm-10pm and 11pm-12midnight.

    CPU is way too high for one page request

    The dashboard correctly shows one Http Request per hour (very light purple line) for those times.  But the CPU consumed (dark purple line) by that one simple page was 3.53s, 3.73s and 3.69s respectively!!  This looks like a few orders of magnitudes way higher that what it should be.

    Is there something wrong in how Azure collects CPU time? At this rate, it will make it enormously expensive to use Azure websites.

    Wednesday, August 7, 2013 4:03 PM

Answers

  • Hi,

    Thanks a lot for your feedback.

    It is hard to say whether the issue is in Windows Azure or in the testing method. From my experience, even though the web page may be extremely simple, it still needs to be served from the server. It can take time for IIS to start or wake the website, start the w3wp process, and etc. So 3 seconds seem as a reasonalbe data. What you may want to test is to see if you repeatedly visit the site (so your site doesn't go to sleep), how much time it takes.

    Best Regards,

    Ming Xu


    Ming Xu
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by K.Kong Friday, August 9, 2013 5:11 AM
    Thursday, August 8, 2013 1:54 PM

All replies

  • this is strange.. should not be that high of cpu usage...

    try killing website and restarting it.. 

    also try deploying to a different data center and see if that changes anything...


    Vishal Narayan Saxena

    http://twitter.com/vishalishere

    http://www.ogleogle.com/vishal/


    Wednesday, August 7, 2013 5:52 PM
  • Hi,

    Thanks a lot for your feedback.

    It is hard to say whether the issue is in Windows Azure or in the testing method. From my experience, even though the web page may be extremely simple, it still needs to be served from the server. It can take time for IIS to start or wake the website, start the w3wp process, and etc. So 3 seconds seem as a reasonalbe data. What you may want to test is to see if you repeatedly visit the site (so your site doesn't go to sleep), how much time it takes.

    Best Regards,

    Ming Xu


    Ming Xu
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by K.Kong Friday, August 9, 2013 5:11 AM
    Thursday, August 8, 2013 1:54 PM
  • I agree with Ming Xu, it is possible to see longer wait times if your site is serving first request after waking up from sleep.. 

    Please mark as answered if it helped

    Vishal Narayan Saxena

    http://twitter.com/vishalishere

    http://www.ogleogle.com/vishal/


    Thursday, August 8, 2013 5:22 PM