Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2008

Tip: Looking for answers? Try searching our database.

measuring one request's cpu usage?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tbh - 16 Feb 2008 13:52 GMT
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_EndRequest())?

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
Peter Bromberg [C# MVP] - 16 Feb 2008 14:24 GMT
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 

> 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
[quoted text clipped - 18 lines]
>
> Tim Hanson
tbh - 16 Feb 2008 14:48 GMT
thanks, Peter. i feared as much. that's the tack we'll try then.

cheers, Tim

> I'd say it would be pretty difficult. While your one request is
> completing,
[quoted text clipped - 35 lines]
>>
>> Tim Hanson

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.