As a workaround you may want to increase proxy_buffer_size to
reduce number of such allocation (and/or just drop connections
periodically). Correct fix would be to make these buffers
reusable once sent to client.
Maxim, thanks for the review of the logs.
Increasing proxy_buffer_size wouldn't end up on malloc()ing more
memory at the end of a period?
I think on sending small chunks (say, 500 bytes) each minute,
during hours, to the clients.
For each small chunk, I think, we will be malloc()ing one buffer, or
am I wrong?