[Geoserver-devel] [jira] Created: (GEOS-852) Make it so Geoserver can configure the JAI tile cache in a sensible manner

Make it so Geoserver can configure the JAI tile cache in a sensible manner
--------------------------------------------------------------------------

                 Key: GEOS-852
                 URL: http://jira.codehaus.org/browse/GEOS-852
             Project: GeoServer
          Issue Type: Improvement
    Affects Versions: 1.5.0-beta1
            Reporter: Andrea Aime
         Assigned To: Andrea Aime
             Fix For: 1.5.0

The JAI parameters configuration in the Geoserver setting suggest the
default value is 209715200, which I suppose is something around 200MB,
right?

Yeah.

I would suggest to have a setting that is proportial to the max heap
size instead, that is, use something like 50%, so that If I start
geoserver with 64mb the tile cache won't eat all the heap memory.
That is, assuming the tile cache can do that, that is, allocate
X megabytes and keep them no matter what causing an OOM.

The GridCoverage DefaulProcessor already does kind of this. If we gave
JAI too much tile memory it lowers it accordingly to heap memory
(thanks to Martin :slight_smile: ). However I think your idea might work quite
well, we could borrow some code from the DefaultProcessor and
implement your idea.

--
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