Skip to content

Instantly share code, notes, and snippets.

@caryfitzhugh
Created February 4, 2018 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caryfitzhugh/cece978268a587dddc84512f7c01fde7 to your computer and use it in GitHub Desktop.
Save caryfitzhugh/cece978268a587dddc84512f7c01fde7 to your computer and use it in GitHub Desktop.

edit /etc/tomcat7/tomcat7.conf

JAVA_OPTS="-XX:SoftRefLRUPolicyMSPerMB=36000 -Xms8192m -Xmx8192m -XX:+UseConcMarkSweepGC -Djava.awt.headless=true "

Install Marlin Rasterizer:

Download. Put into

wget https://github.com/bourgesl/marlin-renderer/releases/download/v0_9_1/marlin-0.9.1-Unsafe.jar
mv marlin-0.9.1-Unsafe.jar /var/lib/tomcat7/webapps/geoserver/WEB-INF/lib/

MARLIN_JAR="/var/lib/tomcat7/webapps/geoserver/WEB-INF/lib/marlin-0.9.1-Unsafe.jar"

# You can pass some parameters to java here if you wish to
#JAVA_OPTS="-Xminf0.1 -Xmaxf0.3"
JAVA_OPTS="-XX:SoftRefLRUPolicyMSPerMB=36000 -Xms8192m -Xmx8192m -XX:+UseConcMarkSweepGC -Djava.awt.headless=true -Xbootclasspath/a:$MARLIN_JAR -Dsun.java2d.renderer=org.marlin.pisces.MarlinRenderingEngine"

http://geoserver.geo-solutions.it/edu/en/install_run/jai_io_install.html

download: http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-linux-amd64.tar.gz

wget http://download.java.net/media/jai/builds/release/1_1_3/jai-1_1_3-lib-linux-amd64.tar.gz && \
gunzip -c jai-1_1_3-lib-linux-amd64.tar.gz | tar xf - && \
mv /tmp/jai-1_1_3/lib/*.jar $JAVA_HOME/lib/ext/ && \
mv /tmp/jai-1_1_3/lib/*.so $JAVA_HOME/lib/amd64/ && \
rm /tmp/jai-1_1_3-lib-linux-amd64.tar.gz && \
rm -r /tmp/jai-1_1_3
wget http://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-amd64.tar.gz && \
gunzip -c jai_imageio-1_1-lib-linux-amd64.tar.gz | tar xf - && \
mv /tmp/jai_imageio-1_1/lib/*.jar $JAVA_HOME/lib/ext/ && \
mv /tmp/jai_imageio-1_1/lib/*.so $JAVA_HOME/lib/amd64/ && \
rm /tmp/jai_imageio-1_1-lib-linux-amd64.tar.gz && \
rm -r /tmp/jai_imageio-1_1

Remove the geoserver versions of those files. WEB-INF/lib folder: cd /var/lib/tomcat7/webapps/geoserver/WEB-INF/lib mv jai*.jar /tmp

service tomcat7 restart
service tomcat7 status

Check with the website about WMS rendering...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment