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: Tue, 17 Jul 2007 09:04:19 +0200,    posted on: microsoft.public.dotnet.framework.aspnet.webservices        back       

Thread Index
  1    Steve B. _swap
          2    George Ter-Saakov
          3    George Ter-Saakov
                 4    Steve B. _swap
                 5    Steve B. _swap
          6    bruce barker
          7    bruce barker


.Net 2.0 : Soap client : reusing http connections ?   
Hi,

We have built an asp.net application that uses some web services (actually 
WSS web services). Because of high number of users and theirs simultaneous 
requests, web services are very frequently requested.

Using standard Visual Studio web references, we cannot control the http 
connections to the web services. The framework seems to keep HTTP connection 
opened until the 4 minutes (by default) timeout occurs. Each time the proxy 
to the web service is called, a new http connection is made.

This cause the asp.net web application to crash after some minutes. Deep 
investigations show that the server reach its 5000 simultaneous connexions.

I have no control over the behavior of the server side (Sharepoint), so I 
need to find to a way to reduce HttpConnections... The code has been 
reviewed to reduce the number of calls to its minimum but the problem still 
occurs. Is there any way to ask the framework to reuse http connections ? 
Moreover, the web service is requested always with the same credentials (the 
asp.net app pool identity) and we are calling only 3 asmx services (3 
proxies shared along the whole request execution).

Note that we worked around the problem by activating caches (business cache, 
and asp.net cache) but that cause the displayed data to be not accurracy.


Thanks in advance,
Steve
Date:Tue, 17 Jul 2007 09:04:19 +0200   Author:  

Re: .Net 2.0 : Soap client : reusing http connections ?   
In your application when calling you webservice
you should have a code like this
localhost.Service service = new localhost.Service();

Do you call service.dispose()? when done with the webservice?

If not you should.

Also you might want to specify ConnectionGroupName on your service 
properties.

You can read more in topic HttpWebRequest.ConnectionGroupName



George.




"Steve B." <steve_beauge@com.msn_swap> wrote in message 
news:%23Up$JEEyHHA.5592@TK2MSFTNGP04.phx.gbl...

> Hi,
>
> We have built an asp.net application that uses some web services (actually 
> WSS web services). Because of high number of users and theirs simultaneous 
> requests, web services are very frequently requested.
>
> Using standard Visual Studio web references, we cannot control the http 
> connections to the web services. The framework seems to keep HTTP 
> connection opened until the 4 minutes (by default) timeout occurs. Each 
> time the proxy to the web service is called, a new http connection is 
> made.
>
> This cause the asp.net web application to crash after some minutes. Deep 
> investigations show that the server reach its 5000 simultaneous 
> connexions.
>
> I have no control over the behavior of the server side (Sharepoint), so I 
> need to find to a way to reduce HttpConnections... The code has been 
> reviewed to reduce the number of calls to its minimum but the problem 
> still occurs. Is there any way to ask the framework to reuse http 
> connections ? Moreover, the web service is requested always with the same 
> credentials (the asp.net app pool identity) and we are calling only 3 asmx 
> services (3 proxies shared along the whole request execution).
>
> Note that we worked around the problem by activating caches (business 
> cache, and asp.net cache) but that cause the displayed data to be not 
> accurracy.
>
>
> Thanks in advance,
> Steve
> 
Date:Tue, 17 Jul 2007 11:18:13 -0400   Author:  

Re: .Net 2.0 : Soap client : reusing http connections ?   
In your application when calling you webservice
you should have a code like this
localhost.Service service = new localhost.Service();

Do you call service.dispose()? when done with the webservice?

If not you should.

Also you might want to specify ConnectionGroupName on your service 
properties.

You can read more in topic HttpWebRequest.ConnectionGroupName



George.




"Steve B." <steve_beauge@com.msn_swap> wrote in message 
news:%23Up$JEEyHHA.5592@TK2MSFTNGP04.phx.gbl...

> Hi,
>
> We have built an asp.net application that uses some web services (actually 
> WSS web services). Because of high number of users and theirs simultaneous 
> requests, web services are very frequently requested.
>
> Using standard Visual Studio web references, we cannot control the http 
> connections to the web services. The framework seems to keep HTTP 
> connection opened until the 4 minutes (by default) timeout occurs. Each 
> time the proxy to the web service is called, a new http connection is 
> made.
>
> This cause the asp.net web application to crash after some minutes. Deep 
> investigations show that the server reach its 5000 simultaneous 
> connexions.
>
> I have no control over the behavior of the server side (Sharepoint), so I 
> need to find to a way to reduce HttpConnections... The code has been 
> reviewed to reduce the number of calls to its minimum but the problem 
> still occurs. Is there any way to ask the framework to reuse http 
> connections ? Moreover, the web service is requested always with the same 
> credentials (the asp.net app pool identity) and we are calling only 3 asmx 
> services (3 proxies shared along the whole request execution).
>
> Note that we worked around the problem by activating caches (business 
> cache, and asp.net cache) but that cause the displayed data to be not 
> accurracy.
>
>
> Thanks in advance,
> Steve
> 
Date:Tue, 17 Jul 2007 11:18:13 -0400   Author:  

Re: .Net 2.0 : Soap client : reusing http connections ?   
you must not be closing the response streams, so the connection is not 
returned to the pool. 4 minutes is well over keep-alive timeouts 
(usually a few seconds).

normally (if your code has no bugs) a busy server will keep using the 
same connections for subsequent web service calls. you can set the 
connection properties to always close (say you are using bigip pooling 
and load balancing)


-- bruce (sqlwork.com)


Steve B. wrote:

> Hi,
> 
> We have built an asp.net application that uses some web services (actually 
> WSS web services). Because of high number of users and theirs simultaneous 
> requests, web services are very frequently requested.
> 
> Using standard Visual Studio web references, we cannot control the http 
> connections to the web services. The framework seems to keep HTTP connection 
> opened until the 4 minutes (by default) timeout occurs. Each time the proxy 
> to the web service is called, a new http connection is made.
> 
> This cause the asp.net web application to crash after some minutes. Deep 
> investigations show that the server reach its 5000 simultaneous connexions.
> 
> I have no control over the behavior of the server side (Sharepoint), so I 
> need to find to a way to reduce HttpConnections... The code has been 
> reviewed to reduce the number of calls to its minimum but the problem still 
> occurs. Is there any way to ask the framework to reuse http connections ? 
> Moreover, the web service is requested always with the same credentials (the 
> asp.net app pool identity) and we are calling only 3 asmx services (3 
> proxies shared along the whole request execution).
> 
> Note that we worked around the problem by activating caches (business cache, 
> and asp.net cache) but that cause the displayed data to be not accurracy.
> 
> 
> Thanks in advance,
> Steve 
> 
> 
Date:Tue, 17 Jul 2007 08:29:29 -0700   Author:  

Re: .Net 2.0 : Soap client : reusing http connections ?   
you must not be closing the response streams, so the connection is not 
returned to the pool. 4 minutes is well over keep-alive timeouts 
(usually a few seconds).

normally (if your code has no bugs) a busy server will keep using the 
same connections for subsequent web service calls. you can set the 
connection properties to always close (say you are using bigip pooling 
and load balancing)


-- bruce (sqlwork.com)


Steve B. wrote:

> Hi,
> 
> We have built an asp.net application that uses some web services (actually 
> WSS web services). Because of high number of users and theirs simultaneous 
> requests, web services are very frequently requested.
> 
> Using standard Visual Studio web references, we cannot control the http 
> connections to the web services. The framework seems to keep HTTP connection 
> opened until the 4 minutes (by default) timeout occurs. Each time the proxy 
> to the web service is called, a new http connection is made.
> 
> This cause the asp.net web application to crash after some minutes. Deep 
> investigations show that the server reach its 5000 simultaneous connexions.
> 
> I have no control over the behavior of the server side (Sharepoint), so I 
> need to find to a way to reduce HttpConnections... The code has been 
> reviewed to reduce the number of calls to its minimum but the problem still 
> occurs. Is there any way to ask the framework to reuse http connections ? 
> Moreover, the web service is requested always with the same credentials (the 
> asp.net app pool identity) and we are calling only 3 asmx services (3 
> proxies shared along the whole request execution).
> 
> Note that we worked around the problem by activating caches (business cache, 
> and asp.net cache) but that cause the displayed data to be not accurracy.
> 
> 
> Thanks in advance,
> Steve 
> 
> 
Date:Tue, 17 Jul 2007 08:29:29 -0700   Author:  

Re: .Net 2.0 : Soap client : reusing http connections ?   
I actually close dispose as often as I can

I'll take a deeper look at this property and if I understand correctly, i 
can set this connectiongroupname to the same value for all proxy for each 
targetted server...


Thanks,
Steve

"George Ter-Saakov"  wrote in message 
news:emUsyWIyHHA.4672@TK2MSFTNGP02.phx.gbl...

> In your application when calling you webservice
> you should have a code like this
> localhost.Service service = new localhost.Service();
>
> Do you call service.dispose()? when done with the webservice?
>
> If not you should.
>
> Also you might want to specify ConnectionGroupName on your service 
> properties.
>
> You can read more in topic HttpWebRequest.ConnectionGroupName
>
>
>
> George.
>
>
>
>
> "Steve B." <steve_beauge@com.msn_swap> wrote in message 
> news:%23Up$JEEyHHA.5592@TK2MSFTNGP04.phx.gbl...
>> Hi,
>>
>> We have built an asp.net application that uses some web services 
>> (actually WSS web services). Because of high number of users and theirs 
>> simultaneous requests, web services are very frequently requested.
>>
>> Using standard Visual Studio web references, we cannot control the http 
>> connections to the web services. The framework seems to keep HTTP 
>> connection opened until the 4 minutes (by default) timeout occurs. Each 
>> time the proxy to the web service is called, a new http connection is 
>> made.
>>
>> This cause the asp.net web application to crash after some minutes. Deep 
>> investigations show that the server reach its 5000 simultaneous 
>> connexions.
>>
>> I have no control over the behavior of the server side (Sharepoint), so I 
>> need to find to a way to reduce HttpConnections... The code has been 
>> reviewed to reduce the number of calls to its minimum but the problem 
>> still occurs. Is there any way to ask the framework to reuse http 
>> connections ? Moreover, the web service is requested always with the same 
>> credentials (the asp.net app pool identity) and we are calling only 3 
>> asmx services (3 proxies shared along the whole request execution).
>>
>> Note that we worked around the problem by activating caches (business 
>> cache, and asp.net cache) but that cause the displayed data to be not 
>> accurracy.
>>
>>
>> Thanks in advance,
>> Steve
>>
>
> 
Date:Tue, 17 Jul 2007 18:04:37 +0200   Author:  

Re: .Net 2.0 : Soap client : reusing http connections ?   
I actually close dispose as often as I can

I'll take a deeper look at this property and if I understand correctly, i 
can set this connectiongroupname to the same value for all proxy for each 
targetted server...


Thanks,
Steve

"George Ter-Saakov"  wrote in message 
news:emUsyWIyHHA.4672@TK2MSFTNGP02.phx.gbl...

> In your application when calling you webservice
> you should have a code like this
> localhost.Service service = new localhost.Service();
>
> Do you call service.dispose()? when done with the webservice?
>
> If not you should.
>
> Also you might want to specify ConnectionGroupName on your service 
> properties.
>
> You can read more in topic HttpWebRequest.ConnectionGroupName
>
>
>
> George.
>
>
>
>
> "Steve B." <steve_beauge@com.msn_swap> wrote in message 
> news:%23Up$JEEyHHA.5592@TK2MSFTNGP04.phx.gbl...
>> Hi,
>>
>> We have built an asp.net application that uses some web services 
>> (actually WSS web services). Because of high number of users and theirs 
>> simultaneous requests, web services are very frequently requested.
>>
>> Using standard Visual Studio web references, we cannot control the http 
>> connections to the web services. The framework seems to keep HTTP 
>> connection opened until the 4 minutes (by default) timeout occurs. Each 
>> time the proxy to the web service is called, a new http connection is 
>> made.
>>
>> This cause the asp.net web application to crash after some minutes. Deep 
>> investigations show that the server reach its 5000 simultaneous 
>> connexions.
>>
>> I have no control over the behavior of the server side (Sharepoint), so I 
>> need to find to a way to reduce HttpConnections... The code has been 
>> reviewed to reduce the number of calls to its minimum but the problem 
>> still occurs. Is there any way to ask the framework to reuse http 
>> connections ? Moreover, the web service is requested always with the same 
>> credentials (the asp.net app pool identity) and we are calling only 3 
>> asmx services (3 proxies shared along the whole request execution).
>>
>> Note that we worked around the problem by activating caches (business 
>> cache, and asp.net cache) but that cause the displayed data to be not 
>> accurracy.
>>
>>
>> Thanks in advance,
>> Steve
>>
>
> 
Date:Tue, 17 Jul 2007 18:04:37 +0200   Author:  

Google
 
Web dotnetnewsgroup.com


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