Skip to content

Instantly share code, notes, and snippets.

@Hoedic
Created August 25, 2013 02:24
Show Gist options
  • Save Hoedic/6331576 to your computer and use it in GitHub Desktop.
Save Hoedic/6331576 to your computer and use it in GitHub Desktop.
Want to support multiple (large) graphs on open trip planner with Tomcat, you have to increase the heap size at lot (and have a lot of memory...)
#In the tomcat/catalina base directory (/usr/share/tomcat6/bin/ under Ubuntu), create a file setenv.sh (tomcat will automatically read it) and set the following:
export JAVA_OPTS='-Xmx6144M'
#or
export CATALINA_OPTS='-Xmx6144M'
#where 6144M is the size needed... in my case, 6GB.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment