On 30/04/2025 16:17, Mark Thomas wrote:
On 30/04/2025 14:59, Doug Whitfield wrote:
Hi folks,
This feature was added in 9.0.90:
The system property org.apache.catalina.connector.RECYCLE_FACADES will
now default to true if not specified, which will in turn set the
default value for the discardFacades connector attribute, thus causing
facade objects to be discarded by default. (remm)
It makes sense that would cause some performance degradation. We are
currently seeing *at least* a 5x increase in the number of
connections. This doesn’t *seem* right, but maybe it is?
That does seem high. Are requests/second staying the same? That would
suggest each one is taking 5x longer.
We’ve been able to reproduce this in 9.0.90 through 9.0.104. If we set
RECYCLE_FACADES to false, then we get the performance we have come to
expect.
I am trying to get some additional information from the performance
team to see what exactly they are doing. Perhaps something needs to be
updated in their code, but in the meantime wondering what others have
seen and what folks think is a reasonable degradation.
Let me run some tests and I should be able to give you a reasonable
upper bound.
I see about a 2% difference for a trivial Hello World servlet. That
should be the upper bound as most requests will be more complex and take
longer (hence the fixed difference cause by Tomcat should be a smaller
percentage of the overall request time).
If you are seeing a 5x difference then I'd suggest it is time to start
up your favourite Java profiler and see what is going on.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org