Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

CLC-1538 Apply new JVM settings for trinidad

  • Loading branch information...
commit ed9391405a91c01473ee47f9cf97ac1a93597221 1 parent b3784ff
@ctweney ctweney authored
Showing with 6 additions and 2 deletions.
  1. +3 −0  config/trinidad.yml
  2. +3 −2 script/start-trinidad.sh
View
3  config/trinidad.yml
@@ -0,0 +1,3 @@
+environment: production
+jruby_min_runtimes: 10
+jruby_max_runtimes: 10
View
5 script/start-trinidad.sh
@@ -21,8 +21,9 @@ export RAILS_ENV=production
echo | $LOGIT
echo "------------------------------------------" | $LOGIT
echo "`date`: Starting CalCentral..." | $LOGIT
-export JRUBY_OPTS="-Xcext.enabled=true -J-server"
-nohup trinidad < /dev/null > /dev/null 2> $LOG &
+OPTS=${CALCENTRAL_JRUBY_OPTS:="-Xcext.enabled=true -J-server -J-verbose:gc -J-XX:+PrintGCTimeStamps -J-XX:+PrintGCDetails -J-XX:+UseParallelOldGC -J-Xms1400m -J-Xmx1400m -J-Xmn500m -J-XX:PermSize=256m -J-XX:MaxPermSize=256m"}
+export JRUBY_OPTS=$OPTS
+nohup trinidad --config ./config/trinidad.yml < /dev/null > log/trinidad.log 2> $LOG &
# wait a bit to let server start up
sleep 30
Please sign in to comment.
Something went wrong with that request. Please try again.