Strabon

changeset 878:cdfe73ee5c85

added option -MM to strabon script for much much more memory (3072)
author Babis Nikolaou <charnik@di.uoa.gr>
date Fri Feb 22 18:36:24 2013 +0200 (2013-02-22)
parents ea1a7bb6c794
children 47b0fb531588
files scripts/strabon
line diff
     1.1 --- a/scripts/strabon	Fri Feb 22 18:35:07 2013 +0200
     1.2 +++ b/scripts/strabon	Fri Feb 22 18:36:24 2013 +0200
     1.3 @@ -77,6 +77,9 @@
     1.4  # much more memory
     1.5  MMORE_MEMORY="-Xms512M -Xmx1536M"
     1.6  
     1.7 +# much much more memory
     1.8 +MMMORE_MEMORY="-Xms512M -Xmx3072M"
     1.9 +
    1.10  # flag for not setting the memory limit more than once
    1.11  MEMORY_INCREASED=false
    1.12  
    1.13 @@ -107,6 +110,7 @@
    1.14  	echo "			  Values: \`true' or \`false'" 
    1.15  	echo "	-m		: use more memory \`${MORE_MEMORY}' (useful in \"out of memory exceptions\""
    1.16  	echo "	-M		: use much more memory \`${MMORE_MEMORY}' (useful in \"out of memory exceptions\""
    1.17 +	echo "	-MM		: use much much more memory \`${MMMORE_MEMORY}' (useful in \"out of memory exceptions\""
    1.18  	echo "	-i		: include URI prefixes in the SPARQL query. Prefixes are taken from file"
    1.19  	echo "			  \`prefixes.sparql'"
    1.20  	echo "	-e DATABASE	: the database engine to connect (one of \`postgis' (default) or \`monetdb')"
    1.21 @@ -222,6 +226,15 @@
    1.22  			fi
    1.23  			shift
    1.24  			;;
    1.25 +		-MM)
    1.26 +			if ! ${MEMORY_INCREASED}; then
    1.27 +				JAVA_OPTS="${JAVA_OPTS} ${MMMORE_MEMORY}"
    1.28 +				MEMORY_INCREASED=true
    1.29 +			else
    1.30 +				echo "${CMD}: memory has already been increased; option \`${1}' will be ignored."
    1.31 +			fi
    1.32 +			shift
    1.33 +			;;
    1.34  		-i)
    1.35  			shift
    1.36  			PREFIXES="$(cat ${PREFIXES_FILE})