Bill Barker wrote:


This is really hidious. You're going to allocate huge amounts of useless memory in pre-fork?


Not really. Instead allocating from jk_pool, the workers runtime data will be allocated from shared memory, so even if there is no JkSmhFile statement and thus shared memory the memory consumption will be the same.

Right now, when shm is allocated, it does not take into account
the actual number of workers, but that will change, once when
I figure out how to get the number of workers without creating them,
because the shm has to be created before the workers.

jk_shm_open/jk_shm_attach functions have 'workers' and 'dynamic' params
that are used for defining the size of allocated shared/plain memory.

Regards,
Mladen.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to