Skip to content

Commit

Permalink
Revert "Revert "add default Ruby GC settings for FluentD""
Browse files Browse the repository at this point in the history
This reverts commit 1c7c18d.
  • Loading branch information
simathih committed Nov 2, 2018
1 parent a4ea87f commit 79eb26f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions installer/scripts/service_control
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,15 @@ find_systemd_dir()

enable_omsagent_service()
{
# set the GC parameters for Ruby
export RUBY_GC_HEAP_GROWTH_FACTOR=1.1
export RUBY_GC_MALLOC_LIMIT=4000100
export RUBY_GC_MALLOC_LIMIT_MAX=16000100
export RUBY_GC_MALLOC_LIMIT_GROWTH_FACTOR=1.1
export RUBY_GC_OLDMALLOC_LIMIT=16000100
export RUBY_GC_OLDMALLOC_LIMIT_MAX=16000100
export RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=0.9

if [ ! -f $CONF_DIR/.service_registered ] && [ -f $OMSADMIN_CONF ]; then
echo "INFO: Configuring OMS agent service $WORKSPACE_ID ..."
if [ ! -f $BIN_DIR/$OMSAGENT_WS ]; then
Expand Down

0 comments on commit 79eb26f

Please sign in to comment.