You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My php script hangs / freezes indefinitely after ~623 UPDATE commands or ~143 CREATE commands while in BATCH mode. This only happens when in BATCH mode and only if I exceed these numbers. A batch update with ~200 commands works very fast. If I do not use BATCH mode, it works for more commands (>1000).
So, conclusion is that somewhere outside my control, in php_socket module, or the rrdcached daemon things are frozen.
I have monitored rrdcached daemon and it's child worker processes and I saw that rrdcached it keeps renewing child processes periodically. with an average of ~3-5% CPU activity.
Initially the back-end opened the BATCH mode too soon and a ~30 second wait was needed for an API to answer, and I thought that might be a reason - maybe a timeout. But I've excluded this wait, and even if the BATCH mode was just started, it still fails after ~600 commands.
OS: Red Hat Enterprise Linux 8.6
RRDtool 1.7.0
If you have any ideas, or suggestions, let me know,
Thanks!
The text was updated successfully, but these errors were encountered:
PS: No error logs are generated by rrdcached (even with -V LOG_DEBUG). No errors are generated in the php code. I also removed the "@" error suppression from socket_write() and still no errors displayed.
Bug description
I'm using
rrdtool 1.7.0
onRedHad 8
. I'm startingrrdcached
as adaemon
using these parameters:The backend, a php application, uses
php_socket
module/extension and a socket client lib for communication (https://github.com/MitinSany/rrdcached-php)My php script hangs / freezes indefinitely after ~623
UPDATE
commands or ~143CREATE
commands while inBATCH
mode. This only happens when inBATCH
mode and only if I exceed these numbers. A batch update with ~200 commands works very fast. If I do not useBATCH
mode, it works for more commands (>1000).I traced down the exact moment where it freezes, and it all falls on this:
socket_write()
(https://www.php.net/manual/en/function.socket-write.php)Debug code:
Output:
So, conclusion is that somewhere outside my control, in php_socket module, or the rrdcached daemon things are frozen.
I have monitored rrdcached daemon and it's child worker processes and I saw that rrdcached it keeps renewing child processes periodically. with an average of ~3-5% CPU activity.
Initially the back-end opened the
BATCH
mode too soon and a ~30 second wait was needed for an API to answer, and I thought that might be a reason - maybe a timeout. But I've excluded this wait, and even if theBATCH
mode was just started, it still fails after ~600 commands.If you have any ideas, or suggestions, let me know,
Thanks!
The text was updated successfully, but these errors were encountered: