473,387 Members | 1,791 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,387 software developers and data experts.

Tracing Web service calls

Our three tier web application is "pausing" under test loading (IIS 6.0
(win2003) -> Web services (win2003) -> SQL server) . The CPU usage on
the W3WP.exe on both the web server and middle tier drops to zero for
about 5 seconds then springs back into life. Nothing in the NT event
logs. No SQL database blocking.

I suspect it is a particular web service call. With SQL server I can
start a "trace" and get a list of all SQL calls (and their
parameters) and how long they are taking - this allows me to track
down "slow" SQL code. I can't see any tool that allows me to do
this for web service calls? Surly there is some IIS plug in that will
allow me to monitor this traffic?

May 28 '06 #1
4 3854
You can put tracing code right into the webservice that can be "turned on"
via a web.config setting. Use a custom TraceWriter to send the messages to a
log file, a database, or whatever you want.

Here is a short article along these lines that could be helpful:

http://www.eggheadcafe.com/articles/20030402.asp
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"ma*******@etrade.com.au" wrote:
Our three tier web application is "pausing" under test loading (IIS 6.0
(win2003) -> Web services (win2003) -> SQL server) . The CPU usage on
the W3WP.exe on both the web server and middle tier drops to zero for
about 5 seconds then springs back into life. Nothing in the NT event
logs. No SQL database blocking.

I suspect it is a particular web service call. With SQL server I can
start a "trace" and get a list of all SQL calls (and their
parameters) and how long they are taking - this allows me to track
down "slow" SQL code. I can't see any tool that allows me to do
this for web service calls? Surly there is some IIS plug in that will
allow me to monitor this traffic?

May 28 '06 #2
Another option is to use the IIS Diagnostics Tools.

http://www.microsoft.com/windowsserv...s/default.mspx

Kirk Allen Evans
Developer Evangelist
Microsoft Corporation
blogs.msdn.com/kaevans

=== This post provided "AS-IS" with no warranties and confers no rights ===
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:84**********************************@microsof t.com...
You can put tracing code right into the webservice that can be "turned on"
via a web.config setting. Use a custom TraceWriter to send the messages to
a
log file, a database, or whatever you want.

Here is a short article along these lines that could be helpful:

http://www.eggheadcafe.com/articles/20030402.asp
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"ma*******@etrade.com.au" wrote:
Our three tier web application is "pausing" under test loading (IIS 6.0
(win2003) -> Web services (win2003) -> SQL server) . The CPU usage on
the W3WP.exe on both the web server and middle tier drops to zero for
about 5 seconds then springs back into life. Nothing in the NT event
logs. No SQL database blocking.

I suspect it is a particular web service call. With SQL server I can
start a "trace" and get a list of all SQL calls (and their
parameters) and how long they are taking - this allows me to track
down "slow" SQL code. I can't see any tool that allows me to do
this for web service calls? Surly there is some IIS plug in that will
allow me to monitor this traffic?


May 28 '06 #3
Thanks for the suggestions. I tried the diag tools. They look helpful
if I get calls that hang, but not for looking into slower calls. Also
none of these tools show me the actual web service requests - something
that should be easy to do as its all XML. I think the IIS team needs to
have a look at the SQL tools and get something similar to their
profiler. I beleive IBM have created such a tool for their web service
solutions.

Kirk Allen Evans wrote:
Another option is to use the IIS Diagnostics Tools.

http://www.microsoft.com/windowsserv...s/default.mspx

Kirk Allen Evans
Developer Evangelist
Microsoft Corporation
blogs.msdn.com/kaevans

=== This post provided "AS-IS" with no warranties and confers no rights ===
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:84**********************************@microsof t.com...
You can put tracing code right into the webservice that can be "turned on"
via a web.config setting. Use a custom TraceWriter to send the messages to
a
log file, a database, or whatever you want.

Here is a short article along these lines that could be helpful:

http://www.eggheadcafe.com/articles/20030402.asp
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"ma*******@etrade.com.au" wrote:
Our three tier web application is "pausing" under test loading (IIS 6.0
(win2003) -> Web services (win2003) -> SQL server) . The CPU usage on
the W3WP.exe on both the web server and middle tier drops to zero for
about 5 seconds then springs back into life. Nothing in the NT event
logs. No SQL database blocking.

I suspect it is a particular web service call. With SQL server I can
start a "trace" and get a list of all SQL calls (and their
parameters) and how long they are taking - this allows me to track
down "slow" SQL code. I can't see any tool that allows me to do
this for web service calls? Surly there is some IIS plug in that will
allow me to monitor this traffic?


May 29 '06 #4
You can hook the OnBeforeSerialize and OnAfterSerialize events to output SOAP
Message logs. In ASP.NET 2.0, there are built -in configuration options to do
this without the need to write additional code.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"ma*******@etrade.com.au" wrote:
Thanks for the suggestions. I tried the diag tools. They look helpful
if I get calls that hang, but not for looking into slower calls. Also
none of these tools show me the actual web service requests - something
that should be easy to do as its all XML. I think the IIS team needs to
have a look at the SQL tools and get something similar to their
profiler. I beleive IBM have created such a tool for their web service
solutions.

Kirk Allen Evans wrote:
Another option is to use the IIS Diagnostics Tools.

http://www.microsoft.com/windowsserv...s/default.mspx

Kirk Allen Evans
Developer Evangelist
Microsoft Corporation
blogs.msdn.com/kaevans

=== This post provided "AS-IS" with no warranties and confers no rights ===
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:84**********************************@microsof t.com...
You can put tracing code right into the webservice that can be "turned on"
via a web.config setting. Use a custom TraceWriter to send the messages to
a
log file, a database, or whatever you want.

Here is a short article along these lines that could be helpful:

http://www.eggheadcafe.com/articles/20030402.asp
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"ma*******@etrade.com.au" wrote:

> Our three tier web application is "pausing" under test loading (IIS 6.0
> (win2003) -> Web services (win2003) -> SQL server) . The CPU usage on
> the W3WP.exe on both the web server and middle tier drops to zero for
> about 5 seconds then springs back into life. Nothing in the NT event
> logs. No SQL database blocking.
>
> I suspect it is a particular web service call. With SQL server I can
> start a "trace" and get a list of all SQL calls (and their
> parameters) and how long they are taking - this allows me to track
> down "slow" SQL code. I can't see any tool that allows me to do
> this for web service calls? Surly there is some IIS plug in that will
> allow me to monitor this traffic?
>
>


May 29 '06 #5

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

Similar topics

18
by: jabailo | last post by:
I wrote a program that loops through a file of records. It parses each line in the file and sends them to a web service that inserts them into an AS400DB2 database using Asynch calls. This is...
5
by: Stig | last post by:
I would like to output the sequence of method calls from a running c# applcaition, but I don't want to add Debug.trace calls at the entry and exit points in each an every methods. Does there...
0
by: Paul Ibison | last post by:
HI when I have a page which calls a component I want to do the following - tracing set to false on the pag tracing set to true in the componen tracing set to false in the page after the call to...
3
by: Tim Mavers | last post by:
Is there an easy way to turn on soap tracing of some sort for a web service? We have built a web service (in production) that is experiencing problems for a client. Is there an easy way we could...
0
by: cesporma | last post by:
Hello - I have created a web service using VS.NET 2005 and using the System.Diagnostics tracing to write to a file. This all works great in my development environment. Once I publish the web...
4
by: magennisw | last post by:
Our three tier web application is "pausing" under test loading (IIS 6.0 (win2003) -> Web services (win2003) -> SQL server) . The CPU usage on the W3WP.exe on both the web server and middle tier...
0
by: Scott Holman | last post by:
I have enabled message tracing on the WCF service. I was attempting to see the difference between binding wsHTTP with MTOM message encoding vs wsHTTP with text message encoding. After changing...
6
by: beachdog | last post by:
I am building a client which accesses a web service (HTTP/SOAP), and I think the response message is somehow not in agreement with my wsdl/ proxy class. I am able to access SOAP headers ok from...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...

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.