On 22 Feb 2005, at 15:22, Richard F. Rebel wrote:

Hello Matt,

Some obvious things...

Are you running a threaded apache mpm such as worker? If not, no
threads, only processes, thus no sharing. You'd have to use another
sharing mechanism in this case such as sysv ipc shared memory, or mmaps.


When you use the worker mpm, the maximum number of apache threads per
process is 64. If you have 75 client connections, then you end up with
at least two processes depending on how you set up apache. Each process
will have it's own copy of the variable that will be incremented
independently of the others. Shared variables will not be shared across
PID's ($$).

Hi Richard,
That would indeed seem to be the problem - I'm running the prefork MPM. It sounds like I'm better off going back to the drawing board
rather than switching to worker and getting bitten by the 64 thread limit later!


Many thanks for the advice,

- Matthew



Reply via email to