[Geoserver-devel] [jira] Created: (GEOS-4843) ResourcePool.CoverageReaderCache is too small

ResourcePool.CoverageReaderCache is too small
---------------------------------------------

                 Key: GEOS-4843
                 URL: https://jira.codehaus.org/browse/GEOS-4843
             Project: GeoServer
          Issue Type: Improvement
          Components: Global
    Affects Versions: 2.1.1
         Environment: CentOS 5.7, JDK 1.6.0_27
            Reporter: Felix LJ Mayer
            Assignee: Andrea Aime

When doing a performance test of our GeoServer, I found that the {{CoverageReaderCache}}s used in {{org.geoserver.catalog.ResourcePool}} were too small (only the default of 100 entries), which caused the constant recreation of {{GridCoverageReader}}s. This had a significant impact on performance, especially with {{imageio-ext-kakadu}} using an NFS mount. I was able to resolve the issue by patching the code to increase the size of {{ResourcePool#coverageReaderCache}} and {{ResourcePool#hintCoverageReaderCache}} to 2000 entries. I could submit a simple patch for that, but my suggestion is to make the size of these caches configurable, perhaps by making {{ResourcePool}} a Spring bean.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira