Skip to content

Instantly share code, notes, and snippets.

@maleficarum
Created March 8, 2013 00:41
Show Gist options
  • Select an option

  • Save maleficarum/5113273 to your computer and use it in GitHub Desktop.

Select an option

Save maleficarum/5113273 to your computer and use it in GitHub Desktop.
Set dinamically tomcat memory ...
#Handy for linux virtual machines; Use 75% of your total system memory for Tomcat.
#Put at start of "{tomcat}/bin/startup.sh"
export CATALINA_OPTS="-Xmx`cat /proc/meminfo | grep MemTotal | awk '{ print $2*0.75 } '`k"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment