Execution time outs

Helicon Ape provides support for Apache .htacces and .htpasswd configuration files for Microsoft IIS.
User avatar
Posts: 16
Joined: 29 Nov 2012, 13:13

Execution time outs

04 Jan 2017, 13:40

We have an application that runs a fairly long (about 2 minute) query that keeps going to the Helicon outage message that we've set up. It seems to timeout at 100 seconds, which seems to correlate to the default .NET execution timeout. We added the execution timeout to the web.config and made it 180 seconds but app still times out at 100 seconds. Is this something that needs to be set in the http.conf for Ape in order for it to make this adjustment?

Thanks

User avatar
Posts: 16
Joined: 29 Nov 2012, 13:13

Re: Execution time outs

04 Jan 2017, 16:29

Also, the message I get back at times on this is....

502 - Web server received an invalid response while acting as a gateway or proxy server.
There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.

User avatar
Posts: 16
Joined: 29 Nov 2012, 13:13

Re: Execution time outs

11 Jan 2017, 17:55

Anything on this at all? Does anyone know how Ape handles execution timeout increase needs?

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: Execution time outs

18 Jan 2017, 09:32

Hello.

Ape does not include any sort of timeouts. In fact Ape has proven to work well with various long polling response techniques, when a request may run for tens of minutes (usually without sending much data though) with no problems. Seeing 502 error in responses, however, may point to the proxy between your backend and frontend. Can you please explain your configuration a bit further and provide configuration files as well. You may continue with the reply to support ticketing system if you are to provide configuration or log files.

User avatar
Posts: 16
Joined: 29 Nov 2012, 13:13

Re: Execution time outs

18 Jan 2017, 15:08

Thanks for the reply. If you are saying all of that timeout/connection info is all handled through .NET and IIS then that's the info I need and will press forward in those areas. Much appreciate the information and post....thanks!

User avatar
Posts: 16
Joined: 29 Nov 2012, 13:13

Re: Execution time outs

02 Feb 2017, 14:32

Circling back to this issue as it still appears to be IIS/Ape related. My setup is basically this....we use Ape to proxy to our backend java apps and have been doing it for years successfully. Some of our applications are sent by Ape directly to the WebLogic app server port, where some of them are sent to the WebLogic proxy, which then sends to the app server port. This is needed when sticky sessions must be maintained. The app we are seeing the timeout with a long running report is one that is sent to the proxy from ape rather than directly to the app port. However, we can still test it directly and the report runs fine when going directly to app server or directly to the WebLogic proxy. So that rules out the application server and weblogic proxy layer.....which leaves IIS and Ape as the piece that is timing out. The error (below)when the timeout occurs seems to indicate it's Ape and we've also added the executionTimeout value to the web.config and it still times out at 100 seconds with this error. The log files are also listed below...below that is the proxy section of this app to Ape.

Stack Trace:


[NullReferenceException: Object reference not set to an instance of an object.]
0.18.1653745543() +1138
Helicon.Ape.ю.²(Object , HttpContext , AsyncCallback , Object ) +236
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +1155
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +299


Log:

2017-02-02 10:14:09.138] [proxy:2] (debug) [/acn/frs/AdvisorFinancialDaAction.do] request to balancer://prxy-balancer12c/acn/frs/Adv ... ubmit=true
[2017-02-02 10:14:09.138] [proxy:2] (debug) [/acn/frs/AdvisorFinancialDaAction.do] request to balancer://prxy-balancer12c/acn/frs/Adv ... ubmit=true
[2017-02-02 10:14:09.138] [proxy:2] (debug) [/acn/frs/AdvisorFinancialDaAction.do] Proxy.DoAsyncRequest - BEGIN
[2017-02-02 10:14:09.154] [proxy:2] (debug) [/acn/frs/AdvisorFinancialDaAction.do] PrepareRequest: Request to http://qawlapp2:7070/acn/frs/AdvisorFin ... ubmit=true
[2017-02-02 10:14:09.154] [proxy:2] (debug) [/acn/frs/AdvisorFinancialDaAction.do] ProxyHandler.PreserveRequestHostHeader: Host: qaweb6.firstcommand.com
[2017-02-02 10:14:09.201] [proxy:2] (debug) [/acn/frs/AdvisorFinancialDaAction.do] ProcessRequestHeader: Headers: 'Cache-Control'='no-cache'
'Content-Type'='application/x-www-form-urlencoded'
'Accept'='text/html, application/xhtml+xml, */*'
'Accept-Encoding'='gzip, deflate'
'Accept-Language'='en-US'
'Cookie'='CNSESSIONID=9fr_mhBbAWuor0O7aa0wZh6wlnVhobJZ8xdNF7DM6vJ4TtUq3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W0kyzyXN4Vwql4v85a5rgyVv+TaEwW7WYqTEAfKUY3d0f3GmKWUuB3BvafFM2FQzKSgXwkIdurqRRMQ4Cv5QwAY7E+F3x3M5m50elAzFavQJOm+Ko0bL3TcTZARn4TuSHG0wQohuV3d7fXGHe58kHjPPZV/OPINKAfu4/fESm1rimdBATvFHIICqMtItGDV1j/80SNuftX7RFLv0yUfnLCCq8RxYmsVhuzVLe2GLM'
'Referer'='https://qaweb6.firstcommand.com/acn/frs/AdvisorFinancialDaAction.do?default=yes&period=qm'
'User-Agent'='Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)'
'X-REQUEST-URI'='/acn/frs/AdvisorFinancialDaAction.do'
'SERVER_PROTOCOL'='HTTP/1.1'
'SM_TRANSACTIONID'='00000000000000000000000001000000-0f84-58935ad1-1b90-008a3c8a'
'SERVER_PORT'='443'
'REQUEST_METHOD'='POST'
'SM_SDOMAIN'='.firstcommand.com'
'SM_REALM'='CommandNet App Server Realm'
'SM_REALMOID'='06-bfcdf830-6d58-4787-8ba4-903fe9a8626a'
'SM_AUTHTYPE'='Form'
'SM_AUTHREASON'='0'
'SM_AUTHDIROID'='0e-570bd2c7-6ea6-458d-863b-fdcdb380ff4e'
'SM_AUTHDIRNAME'='FCHQA HomeOfficeUsers'
'SM_AUTHDIRSERVER'='qafchadserver02.fchqa.fcqa.com qafchadserver01.fchqa.fcqa.com'
'SM_AUTHDIRNAMESPACE'='LDAP:'
'SM_USER'='testprodrecord'
'SM_USERDN'='CN=Test\, Prodrecord,OU=Financial Services,OU=HomeOfficeUsers,DC=fchqa,DC=FCQA,DC=com'
'SM_SERVERSESSIONID'='zezk3k3tD5T8UgHkdeeWLxMS/hg='
'SM_SERVERSESSIONSPEC'='R6o7eGR9k5n2SR0KV7bLNpB49rejH++wD/f29ed9awuIIQbUfNx+J8gEhW2gQJ1z7oY2VBSGoyJSlg3ERLD+hvAWPMsKkluOI3XXz3ZAIZld64D/x20HsGhQw10FVFO1lLMLM8lRaJXQGMmpqSJ33TlqYDU1TlXYTFtU42mDEtYQnVQVMLTLPRnrZtSUfXSS1dhjq0AjNnQ8/UF2fuD+R9l7Q5j2/Jgs+ovbNJBS8xl4rdJ+YE4zojXuF5f8JMseMrKdUlgXB7qFYoS9IWiGYNEWjx6dJF+evALiiUvPOS/Q7dxVWLdPxNJ5ZuBYfpwfSiDDR36OmPAFa+jw1uPIX0JSVZWWo5Z5TgzsLN2J+RVC+ov4QXPABfRkmB6g84AYC7v1ilpO5ql9pdU+msnQWO3hqt4awd+3tHh9T/yB4xVWkYnVVhB9Fn6TGNCWQsel9bBxY5BTZ07d36zS6ccUD/DqB0tChbNTdWrriBwyiDsQAwEUQ+uTei9L/MACPgggkrnlHtyu0RE='
'SM_TIMETOEXPIRE'='7153'
'SM_SERVERIDENTITYSPEC'=''
'webUserID'='Test, Prodrecord'
'Max-Forwards'='10'
'X-Forwarded-Host'='qaweb6.firstcommand.com'
'X-Forwarded-For'='10.5.110.53'
'X-Forwarded-Server'='10.5.110.53'
'Host'='qaweb6.firstcommand.com'
'Content-Length'='97'
[2017-02-02 10:14:09.201] [proxy:2] (debug) [/acn/frs/AdvisorFinancialDaAction.do] ProxyHandler.DoAsyncRequest : BeginGetResponse
[2017-02-02 10:15:49.229] [proxy:2] (debug) [/acn/frs/AdvisorFinancialDaAction.do] ProxyHandler.RespCallBack
[2017-02-02 10:15:49.229] [proxy:2] (debug) [/acn/frs/AdvisorFinancialDaAction.do] ProxyHandler.RespCallBack : EndGetResponse 100026ms
[2017-02-02 10:15:49.244] [proxy:2] (warn) [/acn/frs/AdvisorFinancialDaAction.do] balancer member 'http://qawlapp2:7070/' set to 5 status
[2017-02-02 10:15:49.244] [proxy:2] (debug) [/acn/frs/AdvisorFinancialDaAction.do] Proxy.DoAsyncRequest - BEGIN
[2017-02-02 10:15:49.244] [proxy:2] (debug) [/acn/frs/AdvisorFinancialDaAction.do] PrepareRequest: Request to http://qawlapp1:7070/acn/frs/AdvisorFin ... ubmit=true
[2017-02-02 10:15:49.244] [proxy:2] (debug) [/acn/frs/AdvisorFinancialDaAction.do] ProxyHandler.PreserveRequestHostHeader: Host: qaweb6.firstcommand.com
[2017-02-02 10:15:49.260] [proxy:2] (error) [/acn/frs/AdvisorFinancialDaAction.do] Done with error: The request was aborted: The request was canceled.
[2017-02-02 10:15:49.275] [proxy:2] (debug) [/acn/frs/AdvisorFinancialDaAction.do] ProxyHandler.registerTimeoutThread

Return to Helicon Ape

Who is online

Users browsing this forum: No registered users and 12 guests