473,396 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

measuring one request's cpu usage?

tbh
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
Feb 16 '08 #1
2 1276
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_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
Feb 16 '08 #2
tbh
thanks, Peter. i feared as much. that's the tack we'll try then.

cheers, Tim

"Peter Bromberg [C# MVP]" <pb*******@yahoo.NoSpamMaam.comwrote in message
news:35**********************************@microsof t.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_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

Feb 16 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Mudge | last post by:
I'm writing PHP Web sites that are database driven with mysql. I'm looking for ways to measure the performance (speed) of my php code, so that I can find ways to write the fastest php code. Any...
4
by: Marek Möhling | last post by:
My server (Apache/1.3.28 - PHP/4.3.3) is configured to receive gzipped data via: Header append Accept-Encoding "gzip, deflate" PHP is configured to send gzipped data via: php_value...
6
by: Matthew Nuzum | last post by:
We've had a chance to talk to some of our competitors who have recently gone out of business. One of the major failings that contributed to their collapse was not accurately understanding how much...
1
by: Kovan Akrei | last post by:
Hi, I have a multithreaded console program package. I would like to check it's peak memory usage. When I check the cmd windows process in task manager I allayes get something like 6 or 7 Mb, but I...
2
by: Guadala Harry | last post by:
Just wondering if/how it is possible to measure how much memory (physical and/or virtual) is used by objects stored in 1. Cache object 2. Application State 3. Session States (across all current...
5
by: Janning Vygen | last post by:
Hi, tonight my database got corruppted. before it worked fine. since two days i do the following tasks every night psql -c 'CLUSTER;' $DBNAME psql -c 'VACUUM FULL ANALYZE;' $DBNAME ...
2
by: =?Utf-8?B?U2Fs?= | last post by:
<I MOVED THIS POST TO ITS OWN THREAD. ORIGINAL POST FOUND HERE:...
3
by: cs | last post by:
Hi, I'm new to C and would appreciate any feedback on the following program, asplit, which splits a file into 2 new files, putting a certain number of lines in the first file, and all the rest...
6
by: magix | last post by:
Hi, Can I: <script language="javascript"> var TimeSec = new String (Request.form("TimeInSec")); or
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.