High memory consumption when proxying to a Comet server

Rogério Schneider stockrt at gmail.com
Tue Apr 13 00:17:10 MSD 2010


> 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?

Regards,
-- 
Rogério Schneider
http://stockrt.github.com



More information about the nginx mailing list