You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because connectionManager is made as static singleton and it's set to org.apache.http.impl.client.HttpClientBuilder then clientBuilder.setMaxConnTotal(concurrency) never has any effect internally in org.apache.http.impl.client.HttpClientBuilder (check Apache HttpComponents code..)
A default value 20 is applied somewhere within HttpComponents and concurrency parameter has no any effect.
The way how connectionManager is prepared (as static singleton) actually breaks a contract of concurrency parameter being configured for every WMS layer in geowebcache.xml.. It's just useless.
In the end I would like to see a control on maxConnectionPerRoute parameter being configurable, as default value 2 (like in browsers) might be a bottleneck for performant environment with GWC generating tiles for many layers on the fly from GeoServer installed side-by-side (whether with embedded or standalone GWC).
concurrency parameter with singleton connection manager (pool of connections) then should be anyway somewhere outside of wmsLayer in geowebcache.xml (looks like it's global setting). As any additional parameter to configure max connections per route (especially when root is side-by-side installed GeoServer , for example, on localhost and we now that 6 conections instead of 2 are ok)
The text was updated successfully, but these errors were encountered:
Parameter value from XML goes to org.apache.http.impl.client.HttpClientBuilder's maxConnTotal.
This is GWC's HttpClientBuilder:
Because connectionManager is made as static singleton and it's set to org.apache.http.impl.client.HttpClientBuilder then clientBuilder.setMaxConnTotal(concurrency) never has any effect internally in org.apache.http.impl.client.HttpClientBuilder (check Apache HttpComponents code..)
A default value 20 is applied somewhere within HttpComponents and concurrency parameter has no any effect.
The way how connectionManager is prepared (as static singleton) actually breaks a contract of concurrency parameter being configured for every WMS layer in geowebcache.xml.. It's just useless.
In the end I would like to see a control on maxConnectionPerRoute parameter being configurable, as default value 2 (like in browsers) might be a bottleneck for performant environment with GWC generating tiles for many layers on the fly from GeoServer installed side-by-side (whether with embedded or standalone GWC).
concurrency parameter with singleton connection manager (pool of connections) then should be anyway somewhere outside of wmsLayer in geowebcache.xml (looks like it's global setting). As any additional parameter to configure max connections per route (especially when root is side-by-side installed GeoServer , for example, on localhost and we now that 6 conections instead of 2 are ok)
The text was updated successfully, but these errors were encountered: