[Geoserver-devel] Memory Errors when loading 500 mb image

Hello,

I am running GeoServer 1.5.3 on a Windows box and running Java SDK 1.6.0_03.
When I try and load images greater then 500 mb I get the following error:

4846891 [WARNING]
org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer
- Java heap space
java.lang.OutOfMemoryError: Java heap space

I am referencing a .PNG image with associated world file. The same image
works fine on my laptop which obviously has a fraction of the resources as
the server I am working with. I have read a couple of threads which
reference problems with JAI and memory. Do I need to set the memory
parameters? If so where do I set the memory parameters? The server I am
using has plent of RAM. Any suggestions would be greatly appreciated.
Thanks.

Cheers,
Blair
--
View this message in context: http://www.nabble.com/Memory-Errors-when-loading-500-mb-image-tf4693123.html#a13414352
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

I solved my own problem....rookie mistake.

I adjusted my memory parameters in the startup.bat from:

:runJava
  cd "%GEOSERVER_HOME%"
  "%RUN_JAVA%" -DGEOSERVER_DATA_DIR="%GEOSERVER_DATA_DIR%"
-Dorg.geotools.referencing.forceXY=true -DSTOP.PORT=8079
-DSTOP.KEY=geoserver -jar %GEOSERVER_HOME%\start.jar

To:

:runJava
  cd "%GEOSERVER_HOME%"
  "%RUN_JAVA%" -DGEOSERVER_DATA_DIR="%GEOSERVER_DATA_DIR%"
-Dorg.geotools.referencing.forceXY=true -DSTOP.PORT=8079
-DSTOP.KEY=geoserver -Xms512m -Xmx1024m -jar %GEOSERVER_HOME%\start.jar

Cheers,
Blair

blaird wrote:

Hello,

I am running GeoServer 1.5.3 on a Windows box and running Java SDK
1.6.0_03. When I try and load images greater then 500 mb I get the
following error:

4846891 [WARNING]
org.geotools.renderer.lite.gridcoverage2d.GridCoverageRenderer
- Java heap space
java.lang.OutOfMemoryError: Java heap space

I am referencing a .PNG image with associated world file. The same image
works fine on my laptop which obviously has a fraction of the resources as
the server I am working with. I have read a couple of threads which
reference problems with JAI and memory. Do I need to set the memory
parameters? If so where do I set the memory parameters? The server I am
using has plent of RAM. Any suggestions would be greatly appreciated.
Thanks.

Cheers,
Blair

--
View this message in context: http://www.nabble.com/Memory-Errors-when-loading-500-mb-image-tf4693123.html#a13414820
Sent from the GeoServer - Dev mailing list archive at Nabble.com.