-
Notifications
You must be signed in to change notification settings - Fork 25
/
run.sh
executable file
·13 lines (11 loc) · 934 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
if [ "$1" = "debug" ]
then
DEBUG="-agentlib:jdwp=transport=dt_socket,server=y,address=4321,suspend=y"
CHAIN=$2
else
CHAIN=$1
fi
java -Xms1024m -Xmx2048m -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager -Dlog4j.configurationFile=conf/log4j2.${CHAIN}.xml ${DEBUG} -jar mysql-replicator-0.16.0-rc3-SNAPSHOT/mysql-replicator-0.16.0-rc3-SNAPSHOT.jar --config-file conf/replicator.${CHAIN}.yml &
# remote profiling
#java -Xms1024m -Xmx4028m -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9010 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=0.0.0.0 -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager -Dlog4j.configurationFile=conf/log4j2.${CHAIN}.xml ${DEBUG} -jar mysql-replicator-0.16.0-rc3-SNAPSHOT/mysql-replicator-0.16.0-rc3-SNAPSHOT.jar --config-file conf/replicator.${CHAIN}.yml &