Re: Timeout Debugging using Apache Adaptor.
Miguel Angel Torres Avila <[email protected]> Wed, 16 Feb 2011 14:06:42 -0600
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
:D, I was pretending to use the connection using apache as the default config for development, but I will have to create to different run configurations the debug one using DirectConnection. Thanks. On Feb 16, 2011, at 2:01 PM, Chuck Hill wrote: > I fear that you may be out of luck then, I don't now how to set this for development instances. > > Chuck > > > On Feb 16, 2011, at 11:57 AM, Miguel Angel Torres Avila wrote: > >> Hi Chuck, thanks for your rapid response, >> >> Actually I set the parameter in the Site tab. >> >> This is the site configuration in my /Library/WebObjects/Configuration/SiteConfig.xml file >> >> >> <site type="NSDictionary"> >> <cnctTimeout type="NSNumber">40</cnctTimeout> >> <viewRefreshRate type="NSNumber">60</viewRefreshRate> >> <recvTimeout type="NSNumber">60</recvTimeout> >> <sendTimeout type="NSNumber">40</sendTimeout> >> <viewRefreshEnabled type="NSString">YES</viewRefreshEnabled> >> <urlVersion type="NSNumber">4</urlVersion> >> <woAdaptor type="NSString">http://localhost/apps/WebObjects</woAdaptor> >> </site> >> >> >> >> On Feb 16, 2011, at 1:53 PM, Chuck Hill wrote: >> >>> Did it get set in this part of the XML? >>>> <site type="NSDictionary"> >>> >>> You need to set this on the Site tab, not the Applications tab. >>> >>> >>> Chuck >>> >>> >>> On Feb 16, 2011, at 11:50 AM, Miguel Angel Torres Avila wrote: >>> >>>> Hi, thanks for your hints. >>>> >>>> I changed the Receive Timeout parameter using JavaMonitor but it looks like it only applies to instances declared using JavaMonitor. I ran my application using eclipse and its behavior didn't change the I checked the report of the wotask using the port 1085. As you can see in the extract of the report the parameters I changed using JavaMonitor only applies to the JavaMonitor instance running on port 2001 that is configured as an application in the JavaMonitor. >>>> >>>> The instance of my development application (dinadmin on port 55551) doesn't take the parameters. >>>> >>>> >>>> Adaptor Config as sent to Local WOAdaptors - All Running Applications and Instances >>>> >>>> <?xml version="1.0" encoding="ASCII"?> >>>> <adaptor> >>>> <application name="JavaMonitor" urlVersion="4"> >>>> <instance id="1" port="2001" host="localhost" sendTimeout="40" recvTimeout="60" cnctTimeout="40"/> >>>> </application> >>>> <application name="dinadmin"> >>>> <instance id="-55551" port="55551" host="localhost"/> >>>> </application> >>>> </adaptor> >>>> >>>> >>>> >>>> Any ideas? >>>> >>>> >>>> >>>> >>>> On Feb 16, 2011, at 11:36 AM, Chuck Hill wrote: >>>> >>>>> The Receive Timeout is the one you want. In theory you can edit /Library/WebObjects/Configuration/SiteConfig.xml >>>>> >>>>> (or run JavaMonitor to edit it) and add it here: >>>>> >>>>> <site type="NSDictionary"> >>>>> ... >>>>> <recvTimeout type="NSNumber">45</recvTimeout> >>>>> ... >>>>> </site> >>>>> >>>>> That should work, but I can't guarantee it. >>>>> >>>>> >>>>> Chuck >>>>> >>>>> >>>>> >>>>> On Feb 16, 2011, at 12:50 AM, Timo Hoepfner wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> take a look at the timeout settings in WOMonitor, especially Site -> HTTP Adaptor Settings. There's some description on the Help tab within WOMonitor: >>>>>> >>>>>>> What HTTP adaptor settings are there? (top) >>>>>>> >>>>>>> Most adaptor settings can be set at globally, on a per-application basis, and on a per-instance basis. When sending configuration information to the HTTP adaptor, Monitor first checks if the instance has a value set. If it doesn't, it checks if the application has a value set. If it doesn't it checks if there are global settings. If there are no global settings, it will allow the HTTP adaptor to use it's own defaults. >>>>>>> Load BalancingThe load-balancing scheme that the HTTP adaptor should use for instances of this application. The standard choices are Random, Round Robin, and Load Average. A custom load-balancer name may also be passed to the HTTP adaptor.RetriesThe number of times a request is retried if a communications failure occurs before an error page is returned.Redirection URLIf an instance fails to respond to a direct request, this is the URL that the client is redirected to.DormantAfter an instance fails to respond, the number of times the adaptor skips that instance before trying again.Send TimeoutSeconds before the adaptor gives up trying to send data to an instance.Receive TimeoutSeconds before the adaptor gives up waiting for a response from the instance.Connect TimeoutSeconds before the adaptor gives up connecting to an instance.Send Buffer SizeSize of the TCP send buffer on the connection to the instance from the HTTP adaptor.Receive BufferSize of the TCP receive buffer on the connection to the instance from the HTTP adaptor.Connection Pool SizeThe maximum number of simultaneous connections a particular adaptor process should keep open to each configured instance.URL VersionWhat WebObjects URL version the application responds to. All WebObjects 4, 4.5, and 5 applications use version 4 URLs by default. >>>>>> >>>>>> >>>>>> >>>>>> The defaults are compiled into the adaptor itself. This if from Wonder's adaptor in Wonder/Utilities/Adaptors/Adaptor/config.h : >>>>>> >>>>>> #define CONN_TIMEOUT 3 /* timeout for connect to webapp instance */ >>>>>> #define SEND_TIMEOUT 5 /* timeout for send to webapp instance */ >>>>>> #define RECV_TIMEOUT 30 /* timeout for receive from webapp instance */ >>>>>> >>>>>> Timo >>>>>> >>>>>> Am 15.02.2011 um 23:07 schrieb Miguel Angel Torres Avila: >>>>>> >>>>>>> Hi List, >>>>>>> >>>>>>> I configured my development environment to work with Apache Adaptor following the instructions of this page: >>>>>>> >>>>>>> http://wiki.objectstyle.org/confluence/display/WO/Development+Tools-Running+Through+Apache >>>>>>> >>>>>>> It works great, but once I try to debug the code when the program stops in a breakpoint and I am debugging in the browser I get a "No instance available" message after 30 seconds. I can continue debugging but when the application returns de response obviously nothing happens in the browser. >>>>>>> >>>>>>> I think the responsible of this timeout is the WOAdaptor but I don't know where to change that parameter. >>>>>>> >>>>>>> Any help would be appreciated, Thanks in advance. >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________ >>>>>>> Ing. Miguel Angel Torres Avila >>>>>>> Director General >>>>>>> Tel: +52 (33) 3367 1892 >>>>>>> Cel: +52 (33) 3106 8758 >>>>>>> E-mail: [email protected] >>>>>>> www.toracom.net >>>>>>> >>>>>>> Antes de imprimir, piense en el Medio Ambiente. Before printing think about the Environment. Avant d'imprimer, pensez à l'Environnement >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> WebObjects-dev mailing list >>>>>>> [email protected] >>>>>>> http://www.omnigroup.com/mailman/listinfo/webobjects-dev >>>>>> >>>>>> _______________________________________________ >>>>>> WebObjects-dev mailing list >>>>>> [email protected] >>>>>> http://www.omnigroup.com/mailman/listinfo/webobjects-dev >>>>> >>>>> -- >>>>> Chuck Hill Senior Consultant / VP Development >>>>> >>>>> Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. >>>>> http://www.global-village.net/products/practical_webobjects >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> _______________________________ >>>> Ing. Miguel Angel Torres Avila >>>> Director General >>>> Tel: +52 (33) 3367 1892 >>>> Cel: +52 (33) 3106 8758 >>>> E-mail: [email protected] >>>> www.toracom.net >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> -- >>> Chuck Hill Senior Consultant / VP Development >>> >>> Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. >>> http://www.global-village.net/products/practical_webobjects >>> >>> >>> >>> >>> >>> >>> >> >> >> >> _______________________________ >> Ing. Miguel Angel Torres Avila >> Director General >> Tel: +52 (33) 3367 1892 >> Cel: +52 (33) 3106 8758 >> E-mail: [email protected] >> www.toracom.net >> >> >> > > -- > Chuck Hill Senior Consultant / VP Development > > Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. > http://www.global-village.net/products/practical_webobjects > > > > > > > _______________________________ Ing. Miguel Angel Torres Avila Director General Tel: +52 (33) 3367 1892 Cel: +52 (33) 3106 8758 E-mail: [email protected] www.toracom.net _______________________________________________ WebObjects-dev mailing list [email protected] http://www.omnigroup.com/mailman/listinfo/webobjects-dev