"Could not launch a new child" errors can fill logs

Bug #1881001 reported by Jeff Davis
This bug report is a duplicate of:  Bug #1919502: C request backlog needs to chill out. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenSRF
New
Undecided
Unassigned

Bug Description

When a C service runs out of listeners (max_children is reached), additional requests will result in a "Could not launch a new child" warning being logged continuously until a listener becomes available and the request is processed. Depending on how long drone saturation lasts, you can end up with millions of these log messages in a very short period of time. I've seen this use up all available disk space on an Evergreen server.

When I mentioned this problem in the #evergreen IRC channel on May 13, Bill Erickson quickly put together a fix:

https://git.evergreen-ils.org/?p=working/OpenSRF.git;a=shortlog;h=refs/heads/user/berick/lpxxx-c-backlog-speedbump

If I understand correctly, this branch adds a 1-second delay before attempting to re-process a request, which is how Perl handles the same scenario. In real-world conditions, that should slow things down long enough for the request backlog to get cleared up before the log spew consumes your disk space. It resolved our immediate problem and I haven't found any new issues yet after applying the fix.

Revision history for this message
Bill Erickson (berick) wrote :

New branch pushed w/ proper labeling:

https://git.evergreen-ils.org/?p=working/OpenSRF.git;a=shortlog;h=refs/heads/user/berick/lp1881001-c-backlog-speedbump

The log spewing issue just happened on one of my test servers. Deploying the patch there for additional testing.

Revision history for this message
Jason Boyer (jboyer) wrote :

This may be the older bug, but it has been addressed in 1919502.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.