Browse Source

Merge pull request #6767 from mckellyln/hpcc12483

HPCC-12483 Set MALLOC_ARENA_MAX=8 to lower heap usage

Reviewed-By: Gavin Halliday <gavin.halliday@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 10 years ago
parent
commit
dc777c5d4d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      initfiles/bash/etc/init.d/hpcc_common.in

+ 3 - 0
initfiles/bash/etc/init.d/hpcc_common.in

@@ -420,6 +420,9 @@ startCmd() {
         echo "compName=$compName compPath=$compPath compProcessName=$compType"
     fi
 
+    # use less heap when threaded
+    export MALLOC_ARENA_MAX=8
+
     # Creating logfiles for component
     logDir=$log/${compName}
     logFile=$log/${compName}/${compName}_init.log