Skip to content
This repository

CLC-1538 Apply new JVM settings for trinidad #893

Merged
merged 1 commit into from about 1 year ago

2 participants

Chris Tweney Yu-Hung Lin
Yu-Hung Lin

Nice work on the tuning!

Yu-Hung Lin yuhunglin merged commit 033e284 into from
Yu-Hung Lin yuhunglin closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Mar 28, 2013
Chris Tweney CLC-1538 Apply new JVM settings for trinidad ed93914
This page is out of date. Refresh to see the latest.
3  config/trinidad.yml
... ...
@@ -0,0 +1,3 @@
  1
+environment: production
  2
+jruby_min_runtimes: 10
  3
+jruby_max_runtimes: 10
5  script/start-trinidad.sh
@@ -21,8 +21,9 @@ export RAILS_ENV=production
21 21
 echo | $LOGIT
22 22
 echo "------------------------------------------" | $LOGIT
23 23
 echo "`date`: Starting CalCentral..." | $LOGIT
24  
-export JRUBY_OPTS="-Xcext.enabled=true -J-server"
25  
-nohup trinidad < /dev/null > /dev/null 2> $LOG  &
  24
+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"}
  25
+export JRUBY_OPTS=$OPTS
  26
+nohup trinidad --config ./config/trinidad.yml < /dev/null > log/trinidad.log 2> $LOG  &
26 27
 
27 28
 # wait a bit to let server start up
28 29
 sleep 30
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.