Forráskód Böngészése

Merge pull request #9065 from mckellyln/hpcc-16211

HPCC-16211 Thor slaves need MALLOC_ARENA_MAX env var set

Reviewed-By: Jake Smith <jake.smith@lexisnexis.com>
Reviewed-By: Michael Gardner <michael.gardner@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 8 éve
szülő
commit
45ee65fff2

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

@@ -383,9 +383,6 @@ startCmd() {
     printf "Starting %-21s" "$compName ..."
     log "compType = $compType"
 
-    # use less heap when threaded
-    export MALLOC_ARENA_MAX=8
-
     # Creating logfiles for component
     logDir=$log/${compName}
 

+ 3 - 0
initfiles/sbin/hpcc_setenv.in

@@ -78,6 +78,9 @@ unset IFS
 source /etc/profile
 IFS="${OIFS}"
 
+# use less heap when threaded
+export MALLOC_ARENA_MAX=8
+
 PATH_PREFIX=`cat ${HPCC_CONFIG} | sed -n "/\[${SECTION}\]/,/\[/p" | grep "^path *= *" | sed -e 's/^path *= *//'`
 
 export PID=`cat ${HPCC_CONFIG} | sed -n "/\[${SECTION}\]/,/\[/p" | grep "^pid *= *" | sed -e 's/^pid *= *//'`