tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rémy Maucherat <r...@apache.org>
Subject Re: Http/2 : Tomcat NIO2 fails on large number of POST request with payload
Date Thu, 07 Mar 2019 19:53:00 GMT
On Thu, Mar 7, 2019 at 5:22 PM Rémy Maucherat <remm@apache.org> wrote:

> On Thu, Mar 7, 2019 at 2:54 PM Rémy Maucherat <remm@apache.org> wrote:
>
>> On Thu, Mar 7, 2019 at 1:47 PM Mark Thomas <markt@apache.org> wrote:
>>
>>> On 07/03/2019 07:40, Santhosh Kumar wrote:
>>> > From some of the test cases I can safely say that tomcat is hitting
>>> some
>>> > limits, I have two test cases ran with two diff size of payload and
>>> without
>>> > any queryParams. The servlet is a empty servlet just returns after
>>> > receiving without doing any business side logic
>>>
>>> Can you repeat those tests with the NIO connector? It would be helpful
>>> to know if we should be looking at the HTTP/2 code or the low-level
>>> connector I/O code.
>>>
>>
>> I was planning to investigate since I'm hunting NIO2 additional issues
>> after the fix for BZ63182. This one looks simpler to reproduce at least
>> [assuming there's an issue].
>>
>
> Ok, so it's a buffer size issue with vectored IO and SSL, the sizes used
> are too optimized.
>

The "fix" will be in Tomcat 9.0.17, the read buffer used simply needs to be
larger with SSL. Both the JSSE and OpenSSL engines exhibit the same
behavior, so no possible workaround elsewhere.

Rémy

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message