Also I noticed that initially for a connection, it allocates a pool of size 256 and if that exceeds, it goes and calls ngx_palloc_large which in turn calls malloc. So, can we not allocate more in the first attempt. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,249144,249149#msg-249149