Re: [U2] callHTTP - disconnect?

2009-09-03 Thread Kevin King
The Connection: close header had zero impact.  Checking other Apache
configuration options now.
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] callHTTP - disconnect?

2009-09-03 Thread Glen Batchelor

 You can always run apache in debug mode (-X) as a single process and run it
under strace to see what's going on.


Glen Batchelor
IT Director
All-Spec Industries
 phone: (910) 332-0424
   fax: (910) 763-5664
E-mail: webmas...@all-spec.com
   Web: http://www.all-spec.com
  Blog: http://blog.all-spec.com


 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of Kevin King
 Sent: Thursday, September 03, 2009 11:17 AM
 To: U2 Users List
 Subject: Re: [U2] callHTTP - disconnect?
 
 The Connection: close header had zero impact.  Checking other Apache
 configuration options now.
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] callHTTP - disconnect?

2009-09-03 Thread Symeon Breen
Actually TIME_WAIT is normal - when you close a connection, it goes to
timewait for a set amount of time and then is closed, this stops any delayed
packets being accepted by a later connection. There are kernel/tcp params to
determine how long it should be in timewait. If you have too many at
timewait this is called TIME_WAIT loading and can have implications on
server performance as each of these has a memory stack.




-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Kevin King
Sent: 02 September 2009 19:07
To: U2 Users List
Subject: [U2] callHTTP - disconnect?

I have a Unidata (6.1/AIX) program using the callHTTP API to move data out
to an Apache server on a transaction by transaction basis.  When the
transactions get dropped into the queue slowly all is well.  When the
transactions get flooded in, Apache gets overwhelmed.  It appears like
Unidata isn't sending a disconnect after the submitRequest because the
TIME_WAIT in netstat is showing excessively long disconnect times for these
connections.  I don't see anything in the API documentation that mentions
disconnecting from the Unidata side; is there a header or option that I can
set to make sure Unidata sends a disconnect after the request?

-Kevin
http://www.PrecisOnline.com
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] callHTTP - disconnect?

2009-09-03 Thread Kevin King
On Thu, Sep 3, 2009 at 10:10 AM, Symeon Breen syme...@gmail.com wrote:

 Actually TIME_WAIT is normal - when you close a connection, it goes to
 timewait for a set amount of time and then is closed, this stops any
 delayed
 packets being accepted by a later connection. There are kernel/tcp params
 to
 determine how long it should be in timewait. If you have too many at
 timewait this is called TIME_WAIT loading and can have implications on
 server performance as each of these has a memory stack.


Yeah, I know it's normal, but when we get a couple hundred of these out here
we usually get a comparable number of httpd children and the server just
stops accepting new connections.  We have only one Unidata instance sending
these things so there shouldn't be any reason why the Apache server would
stop allowing connections if each one gets disconnected in a timely manner.
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] callHTTP - disconnect?

2009-09-02 Thread Glen Batchelor

 I don't suppose it's keep-alives going bad?


Glen Batchelor
IT Director
All-Spec Industries
 phone: (910) 332-0424
   fax: (910) 763-5664
E-mail: webmas...@all-spec.com
   Web: http://www.all-spec.com
  Blog: http://blog.all-spec.com


 -Original Message-
 From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-
 boun...@listserver.u2ug.org] On Behalf Of Kevin King
 Sent: Wednesday, September 02, 2009 2:07 PM
 To: U2 Users List
 Subject: [U2] callHTTP - disconnect?
 
 I have a Unidata (6.1/AIX) program using the callHTTP API to move data out
 to an Apache server on a transaction by transaction basis.  When the
 transactions get dropped into the queue slowly all is well.  When the
 transactions get flooded in, Apache gets overwhelmed.  It appears like
 Unidata isn't sending a disconnect after the submitRequest because the
 TIME_WAIT in netstat is showing excessively long disconnect times for
 these
 connections.  I don't see anything in the API documentation that mentions
 disconnecting from the Unidata side; is there a header or option that I
 can
 set to make sure Unidata sends a disconnect after the request?
 
 -Kevin
 http://www.PrecisOnline.com
 ___
 U2-Users mailing list
 U2-Users@listserver.u2ug.org
 http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


Re: [U2] callHTTP - disconnect?

2009-09-02 Thread Symeon Breen
In your apache app set the http response header 'Connection' to 'Close'




-Original Message-
From: u2-users-boun...@listserver.u2ug.org
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Kevin King
Sent: 02 September 2009 19:07
To: U2 Users List
Subject: [U2] callHTTP - disconnect?

I have a Unidata (6.1/AIX) program using the callHTTP API to move data out
to an Apache server on a transaction by transaction basis.  When the
transactions get dropped into the queue slowly all is well.  When the
transactions get flooded in, Apache gets overwhelmed.  It appears like
Unidata isn't sending a disconnect after the submitRequest because the
TIME_WAIT in netstat is showing excessively long disconnect times for these
connections.  I don't see anything in the API documentation that mentions
disconnecting from the Unidata side; is there a header or option that I can
set to make sure Unidata sends a disconnect after the request?

-Kevin
http://www.PrecisOnline.com
___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

___
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users