Skip to content

Commit

Permalink
MODCLUSTER-511 run-demo.sh script fails in most cases, make it more r…
Browse files Browse the repository at this point in the history
…esilient
  • Loading branch information
rhusar committed Jun 7, 2016
1 parent f8b7827 commit 3d1b3e1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions demo/client/src/main/resources/run-demo.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#!/usr/bin/env bash

CP=./classes

for i in lib/*.jar
do
CP=$CP:./${i}
CP=${CP}:./${i}
done

# NOTE -Xss8K may cause troubles check ulimit -s should be >= 8192
OPTS="-Xmn200M -Xmx300M -Xms300M -Xss8K -XX:ThreadStackSize=8k -XX:CompileThreshold=100 -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=31"
# Uncomment the following line for enabling JVM performance options; note -Xss8K may cause troubles check ulimit -s should be >= 8192
#OPTS="-Xmn200M -Xmx300M -Xms300M -Xss8K -XX:ThreadStackSize=8k -XX:CompileThreshold=100 -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=15"

# Tell the HttpURLConnection pool to maintain 400 connections max
OPTS="$OPTS -Dhttp.maxConnections=400"
Expand Down

0 comments on commit 3d1b3e1

Please sign in to comment.