What is the GeoTools memory needs?
----------------------------------

                 Key: GEOT-1464
                 URL: http://jira.codehaus.org/browse/GEOT-1464
             Project: GeoTools
          Issue Type: Wish
    Affects Versions: 2.3.4
            Reporter: Vit Ondruch


We are using GeoTools in our project for rendering maps. As these maps are 
usually displayed in web browser in full screen mode, the output image can have 
resolution like 1400x1000 px or even higher. The problem is that we are facing 
to incompletely rendered maps now. Some layer are rendered and some are not. 
The JAVA is usually reporting error such as:

Aug 22, 2007 3:18:11 AM org.geotools.renderer.lite.StreamingRenderer paint
SEVERE: Java heap space
java.lang.OutOfMemoryError: Java heap space
        at java.awt.image.DataBufferInt.<init>(DataBufferInt.java:41)
        at 
java.awt.image.SinglePixelPackedSampleModel.createDataBuffer(SinglePixelPackedSampleModel.java:220)
        at 
sun.awt.image.IntegerInterleavedRaster.<init>(IntegerInterleavedRaster.java:55)
        at 
sun.awt.image.IntegerInterleavedRaster.createCompatibleWritableRaster(IntegerInterleavedRaster.java:515)
        at 
sun.awt.image.BufferedImageGraphicsConfig.createCompatibleImage(BufferedImageGraphicsConfig.java:84)
        at 
java.awt.GraphicsConfiguration.createCompatibleImage(GraphicsConfiguration.java:155)
        at 
org.geotools.renderer.lite.StreamingRenderer.createLiteFeatureTypeStyles(StreamingRenderer.java:1402)
        at 
org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1528)
        at 
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:714)
        at 
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:436)
        at com.Amberg.GEOvis2.GVMap.render(GVMap.java:261)  

We tried to solve the problem by increasing default 64 MB heap on 128 MB, but 
at higher resolution, there can be problems again.

Could you explain what causes such a high memory consumption? The image 
resolution, number of layers, number of rendered entities, number of rendering 
rules or .... How we can assure that image will be correctly rendered?

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

        

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to