DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 19 Jul 2007 09:16:21 +0200,    posted on: microsoft.public.dotnet.framework.aspnet.webservices        back       

Thread Index
  1    Andreas Klein
          2    John Saunders [MVP] john.saunders at trizetto.com
          3    Andreas Klein
                 4    John Saunders [MVP] john.saunders at trizetto.com
                        5    Andreas Klein
          6    Peter Yao


rising process time of a webservice   
Hello NG,

I have a problem with a webservice on my server: the process time is rising 
when the are multiple requests.

This means with one request the answer comes after about 500ms. When i have 
5 concurrent requests, _each_ answer takes about 2000ms. I have tested this 
with a dummy function on my webservice, which waits for 500ms and a test 
application which creates several threads calling the service.

When i run the test with my localhost i dont have this problem.

The server is well configured and up-to-date, there are running other 
websites from our company on it.

We are using .NET 2.0, IIS 6, 4-core-processor server with w2k.

Is this a configuration problem or does anyone have another idea whats wrong 
here?

regards
Andreas
Date:Thu, 19 Jul 2007 09:16:21 +0200   Author:  

Re: rising process time of a webservice   
"Andreas Klein"  wrote in message 
news:uhi01SdyHHA.1576@TK2MSFTNGP03.phx.gbl...

> Hello NG,
>
> I have a problem with a webservice on my server: the process time is 
> rising when the are multiple requests.
>
> This means with one request the answer comes after about 500ms. When i 
> have 5 concurrent requests, _each_ answer takes about 2000ms. I have 
> tested this with a dummy function on my webservice, which waits for 500ms 
> and a test application which creates several threads calling the service.
>
> When i run the test with my localhost i dont have this problem.
>
> The server is well configured and up-to-date, there are running other 
> websites from our company on it.
>
> We are using .NET 2.0, IIS 6, 4-core-processor server with w2k.
>
> Is this a configuration problem or does anyone have another idea whats 
> wrong here?


Obviously, something is taking longer as the system becomes more loaded.

;-)

Ok, actually, you haven't provided any information that would help us solve 
the problem. The only way your information could be adequate is if there 
were a known bug in Windows 2000 with NET 2.0 where the processing time 
increased with load for _all_ web services.

If that were the case, I don't think Microsoft would support ASP.NET on 
Windows 2000.

So, the cause of your problem is something specific to your application. 
Unfortunately,  you haven't said anything about the application. What is it 
doing for 500 ms? Database access? Is your service the only application 
using the database server machine? The only thing using the network subnet? 
Can the problem be reproduced off-hours?

Any number of other questions will likely arise once we have some idea of 
what your code is doing.
-- 
John Saunders [MVP]
Date:Thu, 19 Jul 2007 15:08:32 -0400   Author:  

Re: rising process time of a webservice   
Thanks for your answer.

Well, my web-service is doing "nothing", i just call a Thread.Sleep(500) in 
the method. Even this increases the process time for each thread calling the 
web service on the server.
On my localhost the proces time is stable (or just a little higher due to 
the processer utilization).

I know this cant be a systematic error on w2k/.net. But i dont know where 
to look for a solution.

regards
Andreas



"John Saunders [MVP]" <john.saunders at trizetto.com> schrieb im Newsbeitrag 
news:%23$0QzgjyHHA.988@TK2MSFTNGP02.phx.gbl...

> "Andreas Klein"  wrote in message 
> news:uhi01SdyHHA.1576@TK2MSFTNGP03.phx.gbl...
>> Hello NG,
>>
>> I have a problem with a webservice on my server: the process time is 
>> rising when the are multiple requests.
>>
>> This means with one request the answer comes after about 500ms. When i 
>> have 5 concurrent requests, _each_ answer takes about 2000ms. I have 
>> tested this with a dummy function on my webservice, which waits for 500ms 
>> and a test application which creates several threads calling the service.
>>
>> When i run the test with my localhost i dont have this problem.
>>
>> The server is well configured and up-to-date, there are running other 
>> websites from our company on it.
>>
>> We are using .NET 2.0, IIS 6, 4-core-processor server with w2k.
>>
>> Is this a configuration problem or does anyone have another idea whats 
>> wrong here?
>
> Obviously, something is taking longer as the system becomes more loaded.
>
> ;-)
>
> Ok, actually, you haven't provided any information that would help us 
> solve the problem. The only way your information could be adequate is if 
> there were a known bug in Windows 2000 with NET 2.0 where the processing 
> time increased with load for _all_ web services.
>
> If that were the case, I don't think Microsoft would support ASP.NET on 
> Windows 2000.
>
> So, the cause of your problem is something specific to your application. 
> Unfortunately,  you haven't said anything about the application. What is 
> it doing for 500 ms? Database access? Is your service the only application 
> using the database server machine? The only thing using the network 
> subnet? Can the problem be reproduced off-hours?
>
> Any number of other questions will likely arise once we have some idea of 
> what your code is doing.
> -- 
> John Saunders [MVP]
> 
Date:Fri, 20 Jul 2007 09:48:24 +0200   Author:  

Re: rising process time of a webservice   
"Andreas Klein"  wrote in message 
news:OlBibJqyHHA.4652@TK2MSFTNGP05.phx.gbl...

> Thanks for your answer.
>
> Well, my web-service is doing "nothing", i just call a Thread.Sleep(500) 
> in the method. Even this increases the process time for each thread 
> calling the web service on the server.
> On my localhost the proces time is stable (or just a little higher due to 
> the processer utilization).
>
> I know this cant be a systematic error on w2k/.net. But i dont know 
> where to look for a solution.


Ok, first, let's be clear about what it is that you are seeing. Please tell 
me, in terms of specific measures (preferably performance counters) exactly 
what you're seeing.

One reason I ask is that you say you're doing a Thread.Sleep(500). Were you 
aware that you are blocking one of the (limited number of) worker threads 
that are available to ASP.NET for handling requests? If you use them up, 
then requests will have to wait to be processed.
-- 
John Saunders [MVP]
Date:Fri, 20 Jul 2007 14:44:31 -0400   Author:  

Re: rising process time of a webservice   
Hi John,

im not sure what kind of information you need.

In my test application i start several Threads, each is calling the 
Sleep-Funktion of the web service. I measure the time that the thread needs 
until its finished and restart the thread.

Here are the results:
localhost:
1 running thread: 590ms
5 running threads: 590ms each thread

server:
1 running thread: 590ms
5 running threads: about 1800ms each thread

so, each new request to the service slows down the other ones, but this is 
just on server, not on my localhost. Thats what i dont understand.

regards
Andreas

"John Saunders [MVP]" <john.saunders at trizetto.com> schrieb im Newsbeitrag 
news:ug1bI4vyHHA.1484@TK2MSFTNGP06.phx.gbl...

> "Andreas Klein"  wrote in message 
> news:OlBibJqyHHA.4652@TK2MSFTNGP05.phx.gbl...
>> Thanks for your answer.
>>
>> Well, my web-service is doing "nothing", i just call a Thread.Sleep(500) 
>> in the method. Even this increases the process time for each thread 
>> calling the web service on the server.
>> On my localhost the proces time is stable (or just a little higher due to 
>> the processer utilization).
>>
>> I know this cant be a systematic error on w2k/.net. But i dont know 
>> where to look for a solution.
>
> Ok, first, let's be clear about what it is that you are seeing. Please 
> tell me, in terms of specific measures (preferably performance counters) 
> exactly what you're seeing.
>
> One reason I ask is that you say you're doing a Thread.Sleep(500). Were 
> you aware that you are blocking one of the (limited number of) worker 
> threads that are available to ASP.NET for handling requests? If you use 
> them up, then requests will have to wait to be processed.
> -- 
> John Saunders [MVP]
> 
Date:Mon, 23 Jul 2007 13:38:06 +0200   Author:  

Re: rising process time of a webservice   
Your client is configured with the default of 2 http calls at the same time, 
so until one finishes the other does not kick off.
Localhost eliminates that restriction.

try changing client side's config under system.net, connectionmanagement

<add address="*" maxconnection="4" />
Date:Sat, 4 Aug 2007 00:07:47 -0400   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us