We recently upgraded from GeoServer 2.1 to the 2.5-SNAPSHOT, both from official OsGeo Centos packages, git revision, c7886eb21885c88d40029432c3178f88931ed820
We are getting the dreaded:
We have tried setting the config variable 50000 in web.xml in the Geoserver config directory as suggested in the docs.
We have also tried setting Xmx via JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=128m -Xmx768m" in /etc/tomcat6/tomcat6.conf as suggested in the docs.
Running,
ps ax|grep tomcatyields
أكثر...
We are getting the dreaded:
Rendering process failed java.lang.OutOfMemoryError: Java heap space Java heap space
errors on processing. The WMS png image we are requesting is 2600 x 2600 pixels and worked on the older version of GeoServer. If we reduce the width/height below 2000 x 2000 pixels, the image is returned. This would seem to imply some cutoff at around 15Mb, assuming 3/4 bytes per pixel, and 4 million pixels at 2000 x 2000.
We have tried setting the config variable 50000 in web.xml in the Geoserver config directory as suggested in the docs.
We have also tried setting Xmx via JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=128m -Xmx768m" in /etc/tomcat6/tomcat6.conf as suggested in the docs.
Running,
ps ax|grep tomcatyields
/usr/lib/jvm/jre/bin/java -XX:MaxPermSize=128m -Xmx768m -Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory -Djava.awt.headless=true -Xms256m -Xmx768m -Xrs -XXerfDataSamplingInterval=500 -XX:MaxPermSize=256m -Dorg.geotools.referencing.forceXY=true -DGEOEXPLORER_DATA=/var/lib/opengeo/geoexplorer -XX:MaxPermSize=128m -Xmx768m -Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory -Djava.awt.headless=true -Xms256m -Xmx768m -Xrs -XXerfDataSamplingInterval=500 -XX:MaxPermSize=256m -Dorg.geotools.referencing.forceXY=true -DGEOEXPLORER_DATA=/var/lib/opengeo/geoexplorer -classpath :/usr/share/tomcat6/bin/bootstrap.jar:/usr/share/tomcat6/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -Dcatalina.base=/usr/share/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat6/temp -Djava.util.logging.config.file=/usr/share/tomcat6/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start
which shows 768m for Xmx, which should be vastly in excess of the requirements for a 2600x2600 pixel png. This is against a dev server with no other users or requests against it. Clearly we are missing something.
أكثر...