Welcome to HostingForumz.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

HTTP connections and IIS6

 
   Web Hosting Problem Solving Community! (Home) -> IIS RSS
Author Message
ianlawton

External


Since: Oct 27, 2003
Posts: 2



(Msg. 1) Posted: Mon Oct 27, 2003 11:04 am
Post subject: HTTP connections and IIS6
Archived from groups: microsoft>public>inetserver>iis (more info?)

Hi,
I have a C# web service application that runs on IIS 5 which is called
by a C# windows service repeatedly from two different machines. The
windows service opens 30 http connections to the web service and uses
them in parallel to process batches. These connections remain at 30
throughout the life of the processing. Recently I moved the web
service to a Windows 2003 IIS 6 machine and have the behaviour of the
application has changed. Regardless of the size of the batches, as
soon as it gets to within a couple of thousand to go the http
connections begin to reduce until it reaches a single connection.

I have tried several different configurations changes on the IIS
machine (increasing the http timeout, changes to the application pool,
etc) but without success.

Can anyone shed any light on this please?


Ian

 >> Stay informed about: HTTP connections and IIS6 
Back to top
Login to vote
someone9

External


Since: Aug 25, 2003
Posts: 2419



(Msg. 2) Posted: Tue Oct 28, 2003 5:50 am
Post subject: Re: HTTP connections and IIS6 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Check %SYSTEMROOT%\System32\LogFiles\HTTPERR\*.log and see if there's lots
of connection failures there.

..Net network classes pool their network connections, which can be
problematic depending on your usage. Are you sure you were actually getting
30 concurrent HTTP connections?

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Ian L" <ianlawton.TakeThisOut@talk21.com> wrote in message
news:1be76897.0310270804.749e4c0c@posting.google.com...
Hi,
I have a C# web service application that runs on IIS 5 which is called
by a C# windows service repeatedly from two different machines. The
windows service opens 30 http connections to the web service and uses
them in parallel to process batches. These connections remain at 30
throughout the life of the processing. Recently I moved the web
service to a Windows 2003 IIS 6 machine and have the behaviour of the
application has changed. Regardless of the size of the batches, as
soon as it gets to within a couple of thousand to go the http
connections begin to reduce until it reaches a single connection.

I have tried several different configurations changes on the IIS
machine (increasing the http timeout, changes to the application pool,
etc) but without success.

Can anyone shed any light on this please?


Ian

 >> Stay informed about: HTTP connections and IIS6 
Back to top
Login to vote
ianlawton

External


Since: Oct 27, 2003
Posts: 2



(Msg. 3) Posted: Wed Oct 29, 2003 12:24 pm
Post subject: Re: HTTP connections and IIS6 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for the reply David,
I've found a lot of Timer_ConnectionIdle calls in there towards the
end of the batch processing. Does that mean the application just isnt
using them? I definitely have 30 connections open because I make a
call in the ServicePointManager in my code to set it to 30 and you can
see them opening in performance monitor. If the frmaework is dropping
them is there any way I can keep them open?

Thanks for the advice

Ian

"David Wang [Msft]" <someone RemoveThis @online.microsoft.com> wrote in message news:<Opt6pJUnDHA.1728 RemoveThis @TK2MSFTNGP09.phx.gbl>...
 > Check %SYSTEMROOT%\System32\LogFiles\HTTPERR\*.log and see if there's lots
 > of connection failures there.
 >
 > .Net network classes pool their network connections, which can be
 > problematic depending on your usage. Are you sure you were actually getting
 > 30 concurrent HTTP connections?
 >
 > --
 > //David
 > IIS
 > This posting is provided "AS IS" with no warranties, and confers no rights.
 > //
 > "Ian L" <ianlawton RemoveThis @talk21.com> wrote in message
 > news:1be76897.0310270804.749e4c0c@posting.google.com...
 > Hi,
 > I have a C# web service application that runs on IIS 5 which is called
 > by a C# windows service repeatedly from two different machines. The
 > windows service opens 30 http connections to the web service and uses
 > them in parallel to process batches. These connections remain at 30
 > throughout the life of the processing. Recently I moved the web
 > service to a Windows 2003 IIS 6 machine and have the behaviour of the
 > application has changed. Regardless of the size of the batches, as
 > soon as it gets to within a couple of thousand to go the http
 > connections begin to reduce until it reaches a single connection.
 >
 > I have tried several different configurations changes on the IIS
 > machine (increasing the http timeout, changes to the application pool,
 > etc) but without success.
 >
 > Can anyone shed any light on this please?
 >
 >
 > Ian<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: HTTP connections and IIS6 
Back to top
Login to vote
someone9

External


Since: Aug 25, 2003
Posts: 2419



(Msg. 4) Posted: Thu Oct 30, 2003 9:37 pm
Post subject: Re: HTTP connections and IIS6 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

It sounds like .Net Framework may have opened 30 on your behalf, but it's
only using very few of them (since it is pooling network connections behind
the scenes). So the extra ones opened but not used are all timing out due
to inactivity.

I'm not certain how you can force the .Net Framework to not pool network
connections -- but I think you should rethink your design. If you need 30
concurrent connections, you cannot use network classes that pool connections
on your behalf. Either you do not really need 30 concurrent connections, or
you use a different network class.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Ian L" <ianlawton.TakeThisOut@talk21.com> wrote in message
news:1be76897.0310290924.74f9d97@posting.google.com...
Thanks for the reply David,
I've found a lot of Timer_ConnectionIdle calls in there towards the
end of the batch processing. Does that mean the application just isnt
using them? I definitely have 30 connections open because I make a
call in the ServicePointManager in my code to set it to 30 and you can
see them opening in performance monitor. If the frmaework is dropping
them is there any way I can keep them open?

Thanks for the advice

Ian

"David Wang [Msft]" <someone.TakeThisOut@online.microsoft.com> wrote in message
news:<Opt6pJUnDHA.1728.TakeThisOut@TK2MSFTNGP09.phx.gbl>...
 > Check %SYSTEMROOT%\System32\LogFiles\HTTPERR\*.log and see if there's lots
 > of connection failures there.
 >
 > .Net network classes pool their network connections, which can be
 > problematic depending on your usage. Are you sure you were actually
getting
 > 30 concurrent HTTP connections?
 >
 > --
 > //David
 > IIS
 > This posting is provided "AS IS" with no warranties, and confers no
rights.
 > //
 > "Ian L" <ianlawton.TakeThisOut@talk21.com> wrote in message
 > news:1be76897.0310270804.749e4c0c@posting.google.com...
 > Hi,
 > I have a C# web service application that runs on IIS 5 which is called
 > by a C# windows service repeatedly from two different machines. The
 > windows service opens 30 http connections to the web service and uses
 > them in parallel to process batches. These connections remain at 30
 > throughout the life of the processing. Recently I moved the web
 > service to a Windows 2003 IIS 6 machine and have the behaviour of the
 > application has changed. Regardless of the size of the batches, as
 > soon as it gets to within a couple of thousand to go the http
 > connections begin to reduce until it reaches a single connection.
 >
 > I have tried several different configurations changes on the IIS
 > machine (increasing the http timeout, changes to the application pool,
 > etc) but without success.
 >
 > Can anyone shed any light on this please?
 >
 >
 > Ian<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: HTTP connections and IIS6 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]