Re: does the apache adaptor have a hard coded limit on number of apps?

Patrick Middleton <[email protected]> Thu, 16 Dec 2004 09:59:45 +0000
Newsgroups gmane.comp.web.webobjects.admin
Message-ID <[email protected]>
>>>> Chad Leigh -- ObjectWerks Inc., [email protected], wrote:
>>>>> I was wondering if the apache adaptor has a limit on the number of
>>>>> Apps
>>>>> that can be defined.
>>>>
>>>> Yes, 16 before WO5.2, and 64 WO5.2 and later:
>>>> <http://www.wodeveloper.com/omniLists/webobjects-admin/2002/February/
>>>> msg000
>>>> 53.html>
>>>>
>>>> You can increase the limit by increasing WA_MAX_APP_COUNT in
>>>> /Developer/Examples/WebObjects/Source/Adaptors/Adaptor/config.h and
>>>> recompiling the adapter.
>>>
>>> Ok, I did this.  Still, when I add the 16th app it gives "the 
>>> requested
>>> application was not found on this server."
>>>
>>> So I try the 5.2 adapter.  Same error, so
>>>
>>>> In addition, Wonder has an updated version of
>>>> the 5.1 adaptor with an increased 64 instance limit, in binary form:
>>>>
>>>> <http://wonder.sourceforge.net/WOAdaptor.html>
>>>
>>> I download this and try this adaptor from Project Wonder.  Same error.
>>> The 16th app gives the error that it cannot be found...

I'm looking at:
	/Developer/Examples/WebObjects/Source/Adaptors/Adaptor/xmlparse.c
	/Developer/Examples/WebObjects/Source/Adaptors/Adaptor/list.c

in the 4.5.1 adaptor sources, and from what I remember this isn't stuff 
that would have changed much for 5.x or in the Wonder adaptor.  
xmlparse.c has this line:
	config.new_apps = wolist_new(16);

and wolist_new() etc, including wolist_setCapacity(), are in list.c .  
The hardcoded 16 is only a hint, and wolist_new() and friends call 
wolist_setCapacity(), which calls realloc() and/or calloc(). I'd bet on 
the problem being in that sequence of calls, somewhere, but I can't spot 
it.

-- Patrick