Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

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.

share|improve this answer
    
Its not working.... not even after increasing the no. to 1024 or 2048 –  user2273001 May 8 '13 at 17:54
    
Can you paste the full error you are getting? –  cherouvim May 8 '13 at 19:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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