We have long running script which sometime run pcntl_fork() to tun several tasks parallel.
Master process calls pinba_timer_start and pinba_timer_stop. Information of timers leave in memory and clones to child processes via forking. Every child process send to server own data and data of parent process. That is why information of master duplicates several times.
I will fix it by calling pinba_flush() and pinba_reset() before process forking. But maybe you can add checking PID of information before sending data to server?
We have long running script which sometime run pcntl_fork() to tun several tasks parallel.
Master process calls pinba_timer_start and pinba_timer_stop. Information of timers leave in memory and clones to child processes via forking. Every child process send to server own data and data of parent process. That is why information of master duplicates several times.
I will fix it by calling pinba_flush() and pinba_reset() before process forking. But maybe you can add checking PID of information before sending data to server?