Re: How to use shared memory btw mpm workers in custom module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



i'm using 2.2.x i've implemented a shared memory segment using apr_shm_* functions but i've noticed that if i access to this segment in ap_hook_handler i can see it and operate with it, but in ap_hook_translate_name the pointer to the shm segment is null.

Any idea or suggestion?

Thanks

2014-11-25 21:36 GMT+01:00 Eric Covener <covener@xxxxxxxxx>:
On Tue, Nov 25, 2014 at 2:41 PM, nik600 <nik600@xxxxxxxxx> wrote:
> Hi
>
> I've implemented a custom module to handle some translate hooks.
>
> I'd like to add some stats info so i need some shared memory between all the
> workers.
>
> Can you point me to the right resources/documentation/example about it?
>
> Basically i'd like to increment some counters and then show them if i
> receive a specific request.

If you only need 2.4, you can see how mod_proxy_balancer uses the
services of mod_slotmem. Otherwise, a good reference might be
mod_proxy_balancer in 2.2.x.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




--
/*************/
nik600
http://www.kumbe.it

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux