Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

I follow the instructions given on this link.

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

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


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.