max number of onfiguration servers
Kenji Nakamura <[email protected]> Mon, 27 Sep 2004 11:01:34 +0900
| Newsgroups | gmane.comp.web.webobjects.admin |
|---|---|
| Message-ID | <[email protected]> |
Hi!
I've been in a trouble unable to add more than 16 conifuration servers.
So far, I found the following points concerned with this problem in the
Adaptor sorce (bundled with WOF5.1 compiled for Apache 1.3.27 on Red
Hat Linux release 7.2).
(1)
config.h
/* maximum number of wotaskds the adaptor can query for config info */
#define WA_MAX_CONFIG_SERVERS 16
(2)
appcfg.c
configServers = WOShmem_alloc("configServers", sizeof(ConfigServer) *
WA_MAX_CONFIG_SERVERS, &count);
(3)
config.c
if ((ret = WOShmem_init(stateFile, sizeof(WOApp) *
WA_MAX_APP_COUNT + sizeof(WOInstance) * WA_MAX_APP_INSTANCE_COUNT *
WA_MAX_APP_COUNT + 1024 * 10)))
When I change the constant number of WA_MAX_CONFIG_SERVERS from 16 to 20,
the adaptor works alright, but when change it to 32, the adaptor fails
to launch because of memory allocation error occuring in the (2) line.
I think it's caused by the too small WOShmem area initialized by the (3)
line. It allocates the memory for WOApp and WOInstance with some
addtional memomy of 10K bytes for the others. It doesn't consider the
memory for ConfigServer itself, so it could be short of memory for too
many configuration servers.
The adaptor seems to work alright with changeing the (2) line to keep
sufficient memory like this:
if ((ret = WOShmem_init(stateFile, sizeof(WOApp) *
WA_MAX_APP_COUNT + sizeof(WOInstance) * WA_MAX_APP_INSTANCE_COUNT *
WA_MAX_APP_COUNT + sizeof(ConfigServer) * WA_MAX_CONFIG_SERVERS + 1024 *
10)))
I cound't find any discussion on WA_MAX_CONFIG_SERVERS or the max number
of onfiguration servers on the WEB (or I might just overlooked), then I
wonder if there would be some simple solution for this.
Is there anybody who suffered from the same kind of problem and/or give
me any suggesiton, please?
Kenji Nakamura
E-mail: [email protected]