2

I am trying to import raster data from PostGIS to GeoServer.

I follow the instructions given on this link.

http://docs.geoserver.org/stable/en/user/tutorials/imagemosaic-jdbc/imagemosaic-jdbc_tutorial.html

I used the gdal_retile to make tiles of my GTiff imagery. I configured xml files and placed them at desire place. Then I used the DDL generation utility which create 4 SQL scripts file, then I ran the SQL scripts. But when I start importing the image tiles, 61 tiles got inserted then an error comes "java.lang.OutOfMemoryError".


There is change in the error... I am attaching the screenshot, please have a look.

1 Answer 1

3

When you import using the java -jar ... command you can add parameters to control how much memory will be given to the JVM running that program. Try the following:

java -jar -Xms512m -Xmx512m ...

If that doesn't work, increase both numbers to 1024 or 2048.

2
  • Its not working.... not even after increasing the no. to 1024 or 2048 May 8, 2013 at 17:54
  • Can you paste the full error you are getting?
    – cherouvim
    May 8, 2013 at 19:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.