-
Notifications
You must be signed in to change notification settings - Fork 9
/
all.sh
executable file
·44 lines (38 loc) · 1.57 KB
/
all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env bash
if [ -f newrelic.zip ]; then
rm -rf newrelic
unzip newrelic.zip
fi
java \
-javaagent:newrelic/newrelic.jar \
-Dnewrelic.config.agent_enabled="${ENABLE_NEWRELIC:-false}" \
-Dnewrelic.config.environment=Prod -Dnewrelic.config.app_name=BookProvider \
-Xms64m -Xmx128m -Xss256k -XX:+HeapDumpOnOutOfMemoryError \
-Djava.security.egd=file:/dev/./urandom \
-Dfile.encoding=UTF8 \
-jar provider.jar &
java \
-javaagent:newrelic/newrelic.jar \
-Dnewrelic.config.agent_enabled="${ENABLE_NEWRELIC:-false}" \
-Dnewrelic.config.environment=Prod -Dnewrelic.config.app_name=TradeGateway \
-Xms32m -Xmx128m -XX:-TieredCompilation -Xss256k -XX:+UseStringDeduplication -XX:+UseG1GC -XX:+HeapDumpOnOutOfMemoryError \
-Djava.security.egd=file:/dev/./urandom \
-Dfile.encoding=UTF8 \
-jar gateway.jar &
java \
-javaagent:newrelic/newrelic.jar \
-Dnewrelic.config.agent_enabled="${ENABLE_NEWRELIC:-false}" \
-Dnewrelic.config.environment=Prod -Dnewrelic.config.app_name=XoOpportunityTrader \
-Xms128m -Xmx1024m -Xss256k -XX:+HeapDumpOnOutOfMemoryError \
-Djava.security.egd=file:/dev/./urandom \
-Dfile.encoding=UTF8 \
-jar opportunity-trader.jar &
java \
-javaagent:newrelic/newrelic.jar \
-Dnewrelic.config.agent_enabled="${ENABLE_NEWRELIC:-false}" \
-Dnewrelic.config.environment=Prod -Dnewrelic.config.app_name=Persistor \
-Xms32m -Xmx128m -Xss256k -XX:+HeapDumpOnOutOfMemoryError \
-Djava.security.egd=file:/dev/./urandom \
-Dfile.encoding=UTF8 \
-jar persistor.jar &
wait &