Welcome! Log In Create A New Profile

Advanced

POST to tomcat fails if more than app. 300KB are uploaded

May 06, 2010 09:34AM
Hi All

My nginx 0.8.35 runs in front of tomcat 6.0.26. Caching is enabled and all buffers have default size. Everything worked fine for months until I implemented a new servlet waiting for POST requests transmitting XML data in the client body to my tomcat.

When the client body is larger than approximately 335KB, tomcat does no longer receive the whole body from nginx and times out reading the client body from nginx. It looks like nginx first buffers the client body (I see the corresponding log entry) and then starts to stream the client body (i.e., the beginning of it) to tomcat.

I tried to change all possible buffer sizes in nginx and tomcat, disabled proxy buffering, and even verified that nginx has sufficient rights and space to write temporary files.

Do you have any ideas how to tell nginx to stream the whole body to tomcat? Note that it works fine for client bodies smaller than 335KB.

Regards,
Marc
Subject Author Posted

POST to tomcat fails if more than app. 300KB are uploaded

marc.kramis@seabix.com May 06, 2010 09:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 312
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready