Blue Theme Orange Theme Green Theme Red Theme
 
Nevron Gauge for SharePoint
Home | Forums | ASP.NET 2.0 Tutorials | Web Services | How Do I...? | Class Browser | WPF Quick Starts | Advertise with Us
 | Consulting  
Submit an Article Submit a Blog 
 Jump to
Skip Navigation Links
TechnologyExpand Technology
WebsiteExpand Website
Team Foundation Server Hosting
Search :       Advanced Search »
Home » Web Services » Web Service Performance using NetMon

Web Service Performance using NetMon

This article helps to find the performance of a web service using Net Mon tool.

Page Views : 3894
Downloads : 0
Rating :
 Rate it
Level : Beginner
   Print Read/Post comments Post a comment  Similar Articles  
   Email to a friend  Bookmark  Author's other articles  
 
Nevron Gauge for SharePoint
Become a Sponsor
Become a Sponsor
 Tag Cloud
 Latest Jobs
More ... 
 Latest Interview Questions
More ... 

Web services are the fundamental building block that exposes useful functionality to Web users through a standard web protocol called Simple Object Access Protocol (SOAP). These services are registered so that users can find them easily through Universal Discovery Description and Integration (UDDI). Application that runs on .NET platform extensively use web services to expose the business functionality and its very important to measure the performance when a client sends request to web service .This article gives an idea  how to identify the performance of web method calls by using NETMon tool.

Network Monitor is a component of Microsoft Systems Management Server (SMS) used to detect and troubleshoot problems on network. Network traffic is saved in a proprietary capture file, so that the captured data can be analyzed later. If NetMon is not installed in your system follow the below steps to install NetMon .

Installation steps:

  1. Open Control Panel. Add/Remove Programs.
  2. Click on Add/Remove Windows Components.
  3. In the Windows Component Wizard select the Management and Monitoring tools. Click on Details. Select "Network Monitor Tools". Click on "OK".
  4. To start installation click next. 
  5. Click on Finish to complete the installation.

After install the NetMon tool the next step is to monitor the web method call and identify the performance, explain below.

Guidelines to measure the performance of Web Service

1. Identify a Web Service for which you want to find the performance. Open NetMon on the machine where web service resided. (Path for the net mon is C:\Winnt\system32\Netmon\netmon.exe). First time when the netmon is opened a "Select a network" window is displayed. Select Local Area Connection (LAN) and click OK. If you want to capture data on another network, click on "Capture" menu items ---> Networks.

2. Set the buffer settings to a bigger value so that the captured data will not be lost. To do this click on "Capture" menu items ---> Buffer Settings. The "Capture Buffer Settings" window is opened. Set the buffer and frame size and click on OK to save the values.

3. To capture the network packets select capture menu ---> start or click on the "Start Capture" button on the tool bar. It starts capturing the packets that are coming to and going from the machine.

 
Snapshot 1: Netmon when capturing the packets.

Note: When the incoming and outgoing packets to a machine are very high, then the tool may skip some of the packets. To avoid this, click on "Capture" and then select "Dedicated capture mode".

4. Send a request from a client which consumes this web service. Wait until you get the response to the client and then stop net mon. To stop capturing, click on Capture menu ---> "stop and view" or "stop and view" button on tool bar.


Snapshot 2: The captured data on a machine.

5. Filtering of captured data: Net mon captures all the packets going to and from a machine. To ease the process of finding out the data relevant to this web service, there is an option to filter the captured data. To filter the captured data click on "Display" menu ---> "Filter" or click on the "filter" button on the tool bar. The display filter window appears.


Snapshot 3: Filters window

6. The filters can be set on 3 parameters like Protocol, Addresses and the properties using the expressions available as shown in snapshot 3.

7. "Post request from client" in the captured data indicates the request. "Response to client "in the captured data indicates the response back to the client. A packet for example is the frame with "Post request from client" till the next frame with "Post request from client".
 
8. Calculation of time taken by the web service: The difference in time taken for the first packet to the last packet is the total transmission time. The difference in time for the last packet in the request and first packet sent for the response is the time taken for the web service processing.

Additional Features of Net Mon:

1. In order to easily identify the requests coming from a machine, Net mon provides you a feature to resolve the IP addresses into names. To achieve this click on "Capture" menu ---> Addresses. The "Address database" window is displayed.


Snapshot 4: Resolution of addresses to names

2. There is an option to insert a comment frame in between the captured data for ease. Click on "Tools" menu in the captured data and then select "Insert Comment Frame".

3. The detailed information about the frame can be seen by double clicking a frame as shown in the snapshot 5.


Snapshot 5: The frame in detail

Note: If the web service contacts a database for its processing then the tool provided by SQL server ie, profiler can be used to find out the time taken by the database.

Comment Request!
Thank you for reading this post. Please post your feedback, question, or comments about this post Here.
Login to add your contents and source code to this article
 [Top] Rate this article
 
 About the author
 
Tulasi Guraja
Looking for C# Consulting?
C# Consulting is founded in 2002 by the founders of C# Corner. Unlike a traditional consulting company, our consultants are well-known experts in .NET and many of them are MVPs, authors, and trainers. We specialize in Microsoft .NET development and utilize Agile Development and Extreme Programming practices to provide fast pace quick turnaround results. Our software development model is a mix of Agile Development, traditional SDLC, and Waterfall models.
Click here to learn more about C# Consulting.
 
Introducing MaxV - one click. infinite control. Hyper-V Hosting from MaximumASP.
Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
Dynamic PDF
ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
Nevron Chart for .NET 2010.1 Now Available
The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
ASP.NET 4 Hosting
Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites – Click Here!
 
 Post a Feedback, Comment, or Question about this article
Subject:
Comment:
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
 Comments

 © 2012  contents copyright of their authors. Rest everything copyright Mindcracker. All rights reserved.