measuring one request's cpu usage?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tbh

    measuring one request's cpu usage?

    cpu load increased on our web servers unexpectedly after a recent, fairly
    routine "release change" (which is to say, we changed a bunch of our scripts
    and libraries in one fell swoop). i can back off to the previous release,
    but it is typically quite hard to simulate live load on test systems, so in
    general it would be good to know in a live setting where this additional cpu
    drain is coming from.

    i know which application is using the most cpu, but that was expected and
    doesn't help me much.

    is it possible to measure how much cpu one request used and record it to a
    log when it ends (in Application_End Request())?

    i looked quite a bit just now and found papers on instrumentation and
    profiling, but wasn't able to find anything this specific yet.

    i will continue to look, but maybe someone can point me quickly to what i
    need. i'd be grateful.

    cheers,

    Tim Hanson


  • =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=

    #2
    RE: measuring one request's cpu usage?

    I'd say it would be pretty difficult. While your one request is completing,
    there could be half a dozen other things going on that would also affect the
    cpu usage, and no reliable way to separate them out from any measurement.

    Probably you'd be better off profiling your app with profiling tools and
    performance counters.
    -- Peter
    Site: http://www.eggheadcafe.com
    UnBlog: http://petesbloggerama.blogspot.com
    MetaFinder: http://www.blogmetafinder.com


    "tbh" wrote:
    cpu load increased on our web servers unexpectedly after a recent, fairly
    routine "release change" (which is to say, we changed a bunch of our scripts
    and libraries in one fell swoop). i can back off to the previous release,
    but it is typically quite hard to simulate live load on test systems, so in
    general it would be good to know in a live setting where this additional cpu
    drain is coming from.
    >
    i know which application is using the most cpu, but that was expected and
    doesn't help me much.
    >
    is it possible to measure how much cpu one request used and record it to a
    log when it ends (in Application_End Request())?
    >
    i looked quite a bit just now and found papers on instrumentation and
    profiling, but wasn't able to find anything this specific yet.
    >
    i will continue to look, but maybe someone can point me quickly to what i
    need. i'd be grateful.
    >
    cheers,
    >
    Tim Hanson
    >
    >
    >

    Comment

    • tbh

      #3
      Re: measuring one request's cpu usage?

      thanks, Peter. i feared as much. that's the tack we'll try then.

      cheers, Tim

      "Peter Bromberg [C# MVP]" <pbromberg@yaho o.NoSpamMaam.co mwrote in message
      news:35AFFCB6-578E-4052-BFE1-80DFD3DDDD5A@mi crosoft.com...
      I'd say it would be pretty difficult. While your one request is
      completing,
      there could be half a dozen other things going on that would also affect
      the
      cpu usage, and no reliable way to separate them out from any measurement.
      >
      Probably you'd be better off profiling your app with profiling tools and
      performance counters.
      -- Peter
      Site: http://www.eggheadcafe.com
      UnBlog: http://petesbloggerama.blogspot.com
      MetaFinder: http://www.blogmetafinder.com
      >
      >
      "tbh" wrote:
      >
      >cpu load increased on our web servers unexpectedly after a recent, fairly
      >routine "release change" (which is to say, we changed a bunch of our
      >scripts
      >and libraries in one fell swoop). i can back off to the previous release,
      >but it is typically quite hard to simulate live load on test systems, so
      >in
      >general it would be good to know in a live setting where this additional
      >cpu
      >drain is coming from.
      >>
      >i know which application is using the most cpu, but that was expected and
      >doesn't help me much.
      >>
      >is it possible to measure how much cpu one request used and record it to
      >a
      >log when it ends (in Application_End Request())?
      >>
      >i looked quite a bit just now and found papers on instrumentation and
      >profiling, but wasn't able to find anything this specific yet.
      >>
      >i will continue to look, but maybe someone can point me quickly to what i
      >need. i'd be grateful.
      >>
      >cheers,
      >>
      >Tim Hanson
      >>
      >>
      >>

      Comment

      Working...