tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 63916] org.apache.catalina.nonblocking.TestNonBlockingAPI abysmally slow with NIO/NIO2 on FreeBSD
Date Wed, 13 Nov 2019 14:48:34 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=63916

--- Comment #27 from Mark Thomas <markt@apache.org> ---
I have been mixing up socket.txBufSize and socket.appWriteBufSize.

My testing shows that socket.appWriteBufSize has no measurable impact on
performance of the stand-alone test.

Performance of the stand-alone test is tightly linked to socket.txBufSize. The
smaller the buffer, the more likely it is the writing thread will fill it
before the OS thread  writes some data. That will cause the socket to be placed
in the Poller and polling does appear to be relatively slow.

The log messages are a significant factor as writing them to stdout slows
things down. I've commented them out for now in my stand-alone test.

The Tomcat unit test in question deliberately sets the txBufSize small to
trigger the use of the Poller. It appears that that setting is far too small.
I'll do some tests and increase it - probably to around 1MB.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message