OsmAnd/config/server_indexes_scripts/batch_indexing.sh
2011-09-13 23:43:00 +00:00

26 lines
1.3 KiB
Bash
Executable file

# This file will start the Osm Extraction UI with custom memory settings for
# the JVM. With the below settings the heap size (Available memory for the application)
# will range from 64 megabyte up to 512 megabyte.
#/usr/lib/jvm/java-6-sun/jre/bin/
if [ -n "`ps auxw | grep batch_server.xml | grep IndexBatchCreator | grep -v grep`" ]; then
echo "The gen_index process is already running!"
echo "`ps auxw | grep batch_server.xml | grep IndexBatchCreator | grep -v grep`"
exit 1
fi
if [ -n "`ps auxw | grep batch_server_upload.xml | grep IndexBatchCreator | grep -v grep`" ]; then
echo "The upload process is already running!"
echo "`ps auxw | grep batch_server_upload.xml | grep IndexBatchCreator | grep -v grep`"
exit 1
fi
if [ -z "$JAVA_HOME" ] ; then
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/
fi
"$JAVA_HOME/bin/java" -Djava.util.logging.config.file=logging.properties \
-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=6789 \
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.ssl=false \
-XX:+UseParallelGC -Xmx3048M -Xmn256M -cp "OsmAndMapCreator/OsmAndMapCreator.jar:OsmAndMapCreator/lib/*.jar" net.osmand.data.index.IndexBatchCreator ./batch_server.xml
./gen_finished_mail.sh
#./batch_uploading.sh > console.upload