Hi Viraj, On Fri, May 22, 2015 at 9:51 AM, Viraj Senevirathne <[email protected]> wrote:
> Hi All, > > Thank you for the information.What if backend server doesn't response back > and timeout will occur, so that callback will be cleared to eliminate > memory leaks. > Callbacks are getting cleared from the TimeoutHandler, that's actually the task of this TimeoutHandler. > How will it be communicated back to the client? > Fault sequence will be invoked, we can configure fault sequence to send some error response back to the client. > > Thanks > > On Fri, May 22, 2015 at 9:14 AM, Malaka Silva <[email protected]> wrote: > >> Hi Viraj, >> >> TimeoutHandler is executed in an interval of 15 seconds. So the time the >> callbacks get cleared can be deviated up to 15 seconds from the configured >> value. The TimeoutHandler execution interval can be configured by defining >> the following property at synapse.properties file: >> synapse.timeout_handler_interval. >> >> you can learn more about how to configuring timeouts using [1] >> >> [1] >> http://wso2.com/library/articles/2014/05/wso2-esb-a-guide-to-troubleshoot/ >> >> >> On Thu, May 21, 2015 at 10:22 PM, Dilini Muthumala <[email protected]> >> wrote: >> >>> Hi Viraj, >>> You can read about 'synapse.timeout_handler_interval' property in >>> 'Endpoint Timeout' section in [1] >>> >>> This property value can be set/changed-if-already-set, in >>> synapse.properties file in <ESB_HOME>/repository/conf folder. >>> If this property is not set in synapse.properties file, (by default it >>> is not set, which is why you see the DEBUG log saying that it's not found.) >>> a default value of 15 seconds is set. This default value is set >>> in org.apache.synapse.SynapseConstants class [2]. >>> >>> Regards, >>> Dilini >>> >>> [1] https://docs.wso2.com/display/ESB481/Address+Endpoint >>> [2] >>> https://svn.wso2.org/repos/wso2/carbon/platform/tags/turing-chunk07/dependencies/synapse/2.1.2-wso2v4/modules/core/src/main/java/org/apache/synapse/SynapseConstants.java >>> >>> >>> On Thu, May 21, 2015 at 9:36 PM, Viraj Senevirathne <[email protected]> >>> wrote: >>> >>>> Hi All, >>>> >>>> I noticed when SendMediator is running for the first time, ESB >>>> retrieves synapse properties from the cache. >>>> >>>> What is the variable 'synapse.timeout_handler_interval' specified in >>>> following ESB DEBUG output and why it is not found? >>>> >>>> How this default value can be changed? >>>> >>> >>> >>> >>>> >>>> [2015-05-21 21:08:50,756] DEBUG - SendMediator Start : Send mediator >>>> >>>> [2015-05-21 21:08:50,756] DEBUG - SendMediator Sending request message >>>> using implicit message properties.. >>>> >>>> Sending To: http://localhost:9000/services/SimpleStockQuoteService >>>> >>>> SOAPAction: urn:getQuote >>>> >>>> [2015-05-21 21:08:50,758] DEBUG - Axis2FlexibleMEPClient Sending [add = >>>> false] [sec = false] [rm = false] [to=Address: >>>> http://localhost:9000/services/SimpleStockQuoteService] >>>> >>>> [2015-05-21 21:08:50,759] DEBUG - Axis2FlexibleMEPClient Message >>>> [Original Request Message ID : >>>> urn:uuid:e38066df-f98f-4b32-8404-08033defb9f5] [New Cloned Request Message >>>> ID : urn:uuid:14647c0b-d47c-403b-aa46-6f48a3ab9707] >>>> >>>> [2015-05-21 21:08:50,760] DEBUG - SynapsePropertiesLoader Retrieving >>>> synapse properties from the cache >>>> >>>> *[2015-05-21 21:08:50,760] INFO - TimeoutHandler This engine will >>>> expire all callbacks after : 120 seconds, irrespective of the timeout >>>> action, after the specified or optional timeout* >>>> >>>> [2015-05-21 21:08:50,760] DEBUG - SynapsePropertiesLoader Retrieving >>>> synapse properties from the cache >>>> >>>> *[2015-05-21 21:08:50,760] DEBUG - MiscellaneousUtil The name with >>>> 'synapse.timeout_handler_interval' cannot be found. Using default value : >>>> 15000* >>>> >>>> [2015-05-21 21:08:50,762] DEBUG - SynapseCallbackReceiver Callback >>>> added. Total callbacks waiting for : 1 >>>> >>>> [2015-05-21 21:08:50,771] DEBUG - SendMediator End : Send mediator >>>> >>>> [2015-05-21 21:08:50,771] DEBUG - InMediator End : In mediator >>>> >>>> Thank you. >>>> >>>> Viraj >>>> >>>> -- >>>> Viraj Senevirathne >>>> Software Engineer; WSO2, Inc. >>>> >>>> Mobile : +94 71 818 4742 <%2B94%20%280%29%20773%20451194> >>>> Email : [email protected] <[email protected]> >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> *Dilini Muthumala* >>> Software Engineer, >>> WSO2 Inc. >>> >>> *E-mail :* [email protected] >>> *Mobile: *+94 713-400-029 >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> >> Best Regards, >> >> Malaka Silva >> Senior Tech Lead >> M: +94 777 219 791 >> Tel : 94 11 214 5345 >> Fax :94 11 2145300 >> Skype : malaka.sampath.silva >> LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 >> Blog : http://mrmalakasilva.blogspot.com/ >> >> WSO2, Inc. >> lean . enterprise . middleware >> http://www.wso2.com/ >> http://www.wso2.com/about/team/malaka-silva/ >> <http://wso2.com/about/team/malaka-silva/> >> >> Save a tree -Conserve nature & Save the world for your future. Print this >> email only if it is absolutely necessary. >> > > > > -- > Viraj Senevirathne > Software Engineer; WSO2, Inc. > > Mobile : +94 71 818 4742 <%2B94%20%280%29%20773%20451194> > Email : [email protected] <[email protected]> > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Isuru Udana* Associate Technical Lead WSO2 Inc.; http://wso2.com email: [email protected] cell: +94 77 3791887 blog: http://mytecheye.blogspot.com/
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
