473,687 Members | 3,066 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Slow web service response times

I have an ASP.NET application that makes 12 different web service calls
from a single method call. Each of the web services themselves don't
do much more than run a small query (I've run the queries elsewhere and
they complete virtually instantaneously ) on some database and return a
dataset. As it so happens, the 12 calls are split up between 4
different web services on the same server, and the web services
themselves are ASP.NET apps built in C#. Anyway, I know that each
individual call usually returns in less than 10 seconds (first call).
I encounter problems only when I try to call them one after another in
my application.

The code looks something like this:
// create proxy objects
WSa.WebService a = new WSa.WebService( );
....
WSd.WebService d = new WSd.WebService( );

// Fill up datasets with web service calls
DataSet ds1 = a.Call1();
DataSet ds2 = a.Call2();
....
DataSet ds7 = c.Call(1);
....
DataSet ds12 = d.Call3();

// Do other processing with data
....

The most time-consuming call returns a chunk of data on the order of
2.5MB in size, but most of the SOAP messages returned are less than
150k.

When I put some timing code in there, I found that it could take from
~124 seconds to ~1290 seconds for the same 12 calls to complete (they
returned the same data every time in my tests). The server hosting the
web services did not ever appear to be under heavy load (I did a remote
desktop to it and put up task manager to watch).

I have tried running them asynchronously, and the total response time
for all of the calls to return -- I need all the data returned before I
can proceed, so I have to wait for all End calls to finish anyway --
still varies greatly. The one thing I learned from the asynchronous
calls is that certain calls among the 12 are far more likely to take
much longer than others. In fact, they take much longer than they
normally would if I just called each of them separately rather than all
12 in sequence. I even wrote a test application with buttons to do
just that, and the total time it takes for me to click all 12 buttons
and get a response is always less than 2 minutes.

Why is there such a variation in response time? What can I do to get
these web service calls to run faster?

Dec 7 '06 #1
1 9003
Hi,
As a last option i think you should go for compression as you are saying in
some calls data returned is about 2.5mb.In web services you use soap
extension to compress soap messages/data.Google for soap extension/process
message/webservices/compression and i am sure yiu will get complete working
code for compression in web services.You can also use gzip.dll found in
system32 folder for compression.If still you are not able to work around then
let me.I will try to provide complete working code for compression in web
services.

Thanks and Regards,
manish bafna

"lowlyscrub " wrote:
I have an ASP.NET application that makes 12 different web service calls
from a single method call. Each of the web services themselves don't
do much more than run a small query (I've run the queries elsewhere and
they complete virtually instantaneously ) on some database and return a
dataset. As it so happens, the 12 calls are split up between 4
different web services on the same server, and the web services
themselves are ASP.NET apps built in C#. Anyway, I know that each
individual call usually returns in less than 10 seconds (first call).
I encounter problems only when I try to call them one after another in
my application.

The code looks something like this:
// create proxy objects
WSa.WebService a = new WSa.WebService( );
....
WSd.WebService d = new WSd.WebService( );

// Fill up datasets with web service calls
DataSet ds1 = a.Call1();
DataSet ds2 = a.Call2();
....
DataSet ds7 = c.Call(1);
....
DataSet ds12 = d.Call3();

// Do other processing with data
....

The most time-consuming call returns a chunk of data on the order of
2.5MB in size, but most of the SOAP messages returned are less than
150k.

When I put some timing code in there, I found that it could take from
~124 seconds to ~1290 seconds for the same 12 calls to complete (they
returned the same data every time in my tests). The server hosting the
web services did not ever appear to be under heavy load (I did a remote
desktop to it and put up task manager to watch).

I have tried running them asynchronously, and the total response time
for all of the calls to return -- I need all the data returned before I
can proceed, so I have to wait for all End calls to finish anyway --
still varies greatly. The one thing I learned from the asynchronous
calls is that certain calls among the 12 are far more likely to take
much longer than others. In fact, they take much longer than they
normally would if I just called each of them separately rather than all
12 in sequence. I even wrote a test application with buttons to do
just that, and the total time it takes for me to click all 12 buttons
and get a response is always less than 2 minutes.

Why is there such a variation in response time? What can I do to get
these web service calls to run faster?

Dec 8 '06 #2

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

Similar topics

9
3452
by: j askey | last post by:
I have a strange bandwidth issue that I have finally tracked down to something fairly specific if anyone has any ideas... Setup: Win2003 Server, PHP 4.3.4, IIS6.0, ISAPI Network: DSL line with a Cisco 678 router using NAT and static port maps. Two switches between webserver and Cisco. Problem: Accessing PHP driven site via any computer except the web server is about 20 times slower. I can get fast response on the server
0
1830
by: dyw55a | last post by:
Hi, I have a web service which have a web method to validate the user and password. I am not sure why it slow down after several person start to run it. I let it return interger. But when user enter correct username and password, the response is OK. when user enter wrong username and password, the response is very slow even hang with no response, then broken page for timeout. I test the web service on the server, it response speed is...
2
5555
by: Drew Stoddard | last post by:
We are working in C#/Winforms and are using asynchronous client-side web service calls (the Begin... and End... methods supplied by the web reference creation). Many of these calls are contained in Windows forms that the user can close before the web service call has completed. This seems to be working fine, but I wanted to check to see if anyone has experienced any problem with this. Specifically this is what I need to know: Is it...
4
2160
by: Vito DeCarlo | last post by:
Over the past week, I've been noticing that any websites (on this one particular web server) built with ASP.NET have unusually slow (5 second) response times when moving through the site. There are times when the delays dissappear, but they are existent 80% of the time. This has only started up over the past week or so and I have checked CPU usage, memory usage, etc. I've also reinstalled the 1.1 version of the .NET framework just to...
2
1545
by: Sven Thorsen | last post by:
I have a Web Service with a method that handles file uploads. The file is sent as a DIME attachment to the SOAP request. The post is successful, the file is received and the correct response is sent back to the client. So there seems to be nothing wrong at all, except: This is UNBELIEVEABLY slow! My last tests were with a 4MB file. The tests took between 30 and 40 seconds total. The web service code finished its work in 750-790...
6
6706
by: MadMan2004 | last post by:
Hello all! I'm having a problem with a project I'm working on and I'd like to ask for anyone's input that might be helpful. I'm building a rather large front-end application connecting to an AS400 for the back end database and I'm experiencing slow response times when executing sql statements. Some select statement response times are bad. Not all, but some. And there doesn't seem to be a consistent factor in any of the sql statements...
13
1589
by: rperreta | last post by:
I'm using VB .NET and it is extremely slow. I went through all the support channels a few months back and since then have stopped development on the project. We are losing money and I have developers idle. Whats the deal MS? Everyone on the forums and all over the web are complaining about this why has there not be a hotfix or something yet? I have an application that is mid stream upgrade and the exe as well as the dev environment is...
5
2817
by: =?Utf-8?B?V2FubmFiZQ==?= | last post by:
We have a page that is loading very slow. There is not a lot of data, not a lot of users are connected at the same time and the page does not produce an error, so I am not sure where to start to look for why it is slowing down. I thought about the DB first and added NOLOCK to a couple of stored procedures that were being run, but with no effect. Can someone offer some tips on where to start looking or how I can begin to diagnose this...
9
13034
by: SAL | last post by:
I have an ASP.NET 2.0 app that takes about 17 seconds to load on first startup but then is very fast after that. As I understand it from some posts in June, this is caused by the loading of the App Domain. We have both Cold Fusion and ASP.NET apps on this server and the Cold Fusion apps do not display such slowness on their first start up of the day. Is there a way to improve the load times of ASP.NET apps? I'm having to justify to my boss...
0
8590
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9069
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8781
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7618
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5806
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4321
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4542
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2214
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1947
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.