2011-08-29 22:23:52 +02:00
|
|
|
# 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
|
2011-09-14 01:40:49 +02:00
|
|
|
"$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
|
2011-08-29 22:23:52 +02:00
|
|
|
#./batch_uploading.sh > console.upload
|