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

catalina.log: 24.05.2013 15:33:38 processSocket SEVERE: Error allocating socket processor java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start( at$Worker.start( at at at at at$ at



Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.font.FontManager at sun.java2d.SunGraphicsEnvironment$ at Method) at sun.java2d.SunGraphicsEnvironment.( at sun.awt.X11GraphicsEnvironment.( at sun.reflect.GeneratedConstructorAccessor109.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance( at java.lang.reflect.Constructor.newInstance( at java.lang.Class.newInstance0( at java.lang.Class.newInstance( at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment( at java.awt.image.BufferedImage.createGraphics( at at at at at at at


and more

ERROR [] - Call MapContent dispose() to prevent memory leaks


After run layer preview(big imagemosaic) geoserver(and other opengeo) send error 502.

share|improve this question

You've run out of memory - add more memory to the JVM that is running your container. Exactly how you do that depends to an extent on which you are using but it will be something like

export JAVA_OPTS = $JAVA_OPTS -Xmx256M -Xms48m

See for a fuller list of possibilities

share|improve this answer
in /etc/default/tomcat6 now JAVA_OPTS="-Djava.awt.headless=true -Xms48m -Xmx256m -Xrs -XX:MaxPermSize=256m -Dorg.geotools.referencing.forceXY=true" – user15445 May 24 '13 at 13:29
after restart: Exception in thread "Thread-11" java.lang.NullPointerException at org.h2.util.RandomUtils$ at – user15445 May 24 '13 at 13:39
and not show big imagemosaic. – user15445 May 27 '13 at 5:52

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.