ResourcePoolInitializer sets the feature type cache size to 0 regardless of the
actual configuration
----------------------------------------------------------------------------------------------------
Key: GEOS-4326
URL: http://jira.codehaus.org/browse/GEOS-4326
Project: GeoServer
Issue Type: Bug
Affects Versions: 2.1-RC1
Reporter: Andrea Aime
Assignee: Andrea Aime
Fix For: 2.1-RC2
This is happening because it's using the index of the property instead of its
value:
{code}
geoServer.addListener(new ConfigurationListenerAdapter() {
@Override
public void handleGlobalChange(GeoServerInfo global, List<String>
propertyNames,
List<Object> oldValues, List<Object> newValues) {
int i = propertyNames.indexOf( "featureTypeCacheSize" );
if (i > -1) {
gs.getCatalog().getResourcePool().setFeatureTypeCacheSize(i);
}
}
});
{code}
This in turn results the LRUMap to use its default size, which is only 16
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel