Hi Aurelien

We have 32 instances running, load balanced across 2 application servers.

I have looked at the application logs - and the only evidence of the broken 
request in the logs is when a new instance:88 is switched to and no session is 
found

21/09 11:00:35 INFO [WorkerThread9] reg.Application 
(handleSessionRestorationErrorInContext:210) - 
handleSessionRestorationErrorInContext for session

The original broken request doesn't appear to get as far as instance:99


On a broken request we see

>       Info: Sending request to instance number 99, port 5555
>       Info: Trying to contact Example:99 on (5555)
>       Info: Example:99 on (5555) connected [pooled: Yes]
>       Info: Request POST 
> /WebObjects/Example.woa/99/wo/45ZaOYm9bb40enplQDqAPM/8.7 HTTP/1.1
>       sent, awaiting response


So the adaptor thinks it has found instance :99  "Info: Example:99 on (5555) 
connected [pooled: Yes]"

But on a successful request we see some extra steps to confirm connection 
before a request is made

>       Info: Sending request to instance number 99, port 5555
>       Info: Trying to contact Example:99 on (5555)
****  Info: attempting to connect to example.com on port 5555
****  Info: Created new pooled connection [1] to example.com:5555
****  Info: Using pooled connection to example.com:5555
>       Info: Example:99 on (2013) connected [pooled: Yes]
>       Info: Request POST 
> /WebObjects/Example.woa/99/wo/45ZaOYm9bb40enplQDqAPM/2.7 HTTP/1.1
>       sent, awaiting response


Why are these extra steps not logged on a broken request. Why is no connection 
attempted?


Thanks James





-----Original Message-----
From: webobjects-deploy-bounces+james.shipton=bbc.co...@lists.apple.com 
[mailto:webobjects-deploy-bounces+james.shipton=bbc.co...@lists.apple.com] On 
Behalf Of Aurélien Minet
Sent: 23 September 2010 14:05
To: [email protected]
Subject: Re: WebObjects Adaptor intermittent connection issues

Hi,

don't you have in the instance 99 log something like :
"Exception while sending response: java.net.SocketException: Broken pipe" ?

Adaptor is marking instance 99 dead cause it doesn't reply in time, it close 
TCP connexion and resend the request to another instance.
As a result when the response is done the instance can't send it back to the 
adaptor cause it hasn't wait enought and you have in the log the "Broken pipe" 
exception.
(the behaviour of switching to another instance if one is found dead / 
unresponsive is normal, the session not found too)

Do you realy have 99 running instances of your application ?

regards

Aurelien

On 09/23/2010 02:16 PM, James Shipton wrote:
> 
> 
> Hi
> 
> We are having intermittent connection issues with the Webobjects 
> Adaptor. Details below
> 
> Using  Apache/1.3.41 (Unix)
> 
> Any thoughts on why the connection is being lost (We have already 
> moved the Example app server to a different location to try to fix it, 
> but to no avail)
> 
> 
> 1) Below is a successful request/response cycle. The request arrives 
> at the Adaptor, which tries and succeeds in connecting to instance 99 on 
> example.com on port 5555. A 200 is returned.
> 
>       Info: <WebObjects Apache Module> new request: 
> /WebObjects/Example.woa/99/wo/45ZaOYm9bb40enplQDqAPM/2.7
>       Debug: App Name: Example.woa/99/wo/45ZaOYm9bb40enplQDqAPM/2.7 (6)
>       Info: V4 URL: /WebObjects/Example.woa/99/wo/45ZaOYm9bb40enplQDqAPM/2.7
>       Info: Selecting specific app instance 99.
>       Debug: Composed URL to 
> '/WebObjects/Example.woa/99/wo/45ZaOYm9bb40enplQDqAPM/2.7'
>       Info: New request is POST 
> /WebObjects/Example.woa/99/wo/45ZaOYm9bb40enplQDqAPM/2.7 HTTP/1.1
>       Info: Sending request to instance number 99, port 5555
>       Info: Trying to contact Example:99 on (5555)
>       Info: attempting to connect to example.com on port 5555
>       Info: Created new pooled connection [1] to example.com:5555
>       Info: Using pooled connection to example.com:5555
>       Info: Example:99 on (2013) connected [pooled: Yes]
>       Info: Request POST 
> /WebObjects/Example.woa/99/wo/45ZaOYm9bb40enplQDqAPM/2.7 HTTP/1.1
>       sent, awaiting response
>       Debug: ac_readConfiguration(): skipped reading config
>       Info: New response: HTTP/1.1 200 Apple WebObjects
>       Info: received ->200 Apple
> 
> 2) Below is an unsuccessful request/response cycle, from the same 
> session. The request arrives at the WOAdaptor, which tries and fails 
> to get a valid response from instance 99 on example.com:5555. It 
> appears that instance 99 is found on port 5555, but whilst the 
> WOAdaptor waits for a response, the pooled connection is dumped and 
> the instance is marked as dead. It is unclear from the ESSReg logs whether 
> this request ever makes it to the ESSReg app. The request is then failed over 
> to another instance, in this case instance 88 on example.com:4444. Instance 
> 88 has no knowledge of the session that was in play on instance 99 and so the 
> Example app throws a session error and a 302 redirect to the error page.
> 
>       Info: <WebObjects Apache Module> new request: 
> /WebObjects/Example.woa/99/wo/45ZaOYm9bb40enplQDqAPM/8.7
>       Debug: App Name: Example.woa/99/wo/45ZaOYm9bb40enplQDqAPM/8.7 (6)
>       Info: V4 URL: /WebObjects/Example.woa/99/wo/45ZaOYm9bb40enplQDqAPM/8.7
>       Info: Selecting specific app instance 99.
>       Debug: Composed URL to 
> '/WebObjects/Example.woa/99/wo/45ZaOYm9bb40enplQDqAPM/8.7'
>       Info: New request is POST 
> /WebObjects/Example.woa/99/wo/45ZaOYm9bb40enplQDqAPM/8.7 HTTP/1.1
>       Info: Sending request to instance number 99, port 5555
>       Info: Trying to contact Example:99 on (5555)
>       Info: Example:99 on (5555) connected [pooled: Yes]
>       Info: Request POST 
> /WebObjects/Example.woa/99/wo/45ZaOYm9bb40enplQDqAPM/8.7 HTTP/1.1
>       sent, awaiting response
>       Debug: ac_readConfiguration(): skipped reading config
>       Info: Dumping pooled connection to example.com(5555)
>       Info: Marking instance 99 dead
>       Warn: Marking example.com:99 unresponsive
>       Debug: connectionAttempts = 1, retries = 10
>       Debug: ac_readConfiguration(): skipped reading config
>       Info: Attempting failover to new instance at index 3
>       Debug: Composed URL to 
> '/WebObjects/Example.woa/88/wo/45ZaOYm9bb40enplQDqAPM/8.7'
>       Info: New request is POST 
> /WebObjects/Example.woa/88/wo/45ZaOYm9bb40enplQDqAPM/8.7 HTTP/1.1
>       Info: Sending request to instance number 88, port 4444
>       Info: Trying to contact Example:88 on (4444)
>       Info: attempting to connect to example.com on port 4444
>       Info: Created new pooled connection [1] to example.com:4444
>       Info: Using pooled connection to example.com:4444
>       Info: Example:88 on (4444) connected [pooled: Yes]
>       Info: Request POST 
> /WebObjects/Example.woa/88/wo/45ZaOYm9bb40enplQDqAPM/8.7 HTTP/1.1
>       sent, awaiting response
>       Debug: ac_readConfiguration(): skipped reading config
>       Info: New response: HTTP/1.1 302 Apple WebObjects
>       Info: received ->302 Apple
> 
> 
>  
> 
> http://www.bbc.co.uk
> This e-mail (and any attachments) is confidential and may contain 
> personal views which are not the views of the BBC unless specifically stated.
> If you have received it in error, please delete it from your system.
> Do not use, copy or disclose the information in any way nor act in reliance 
> on it and notify the sender immediately.
> Please note that the BBC monitors e-mails sent or received.
> Further communication will signify your consent to this.
> 
> 
> 
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-deploy mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-deploy/aurelien.mine
> t%40univ-provence.fr
> 
> This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/james.shipton%40bbc.co.uk

This email sent to [email protected]

http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal 
views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on 
it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
                                        
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to