Explorar o código

HPCC-16211 Thor slaves need MALLOC_ARENA_MAX env var set

Signed-off-by: Mark Kelly <mark.kelly@lexisnexis.com>
Mark Kelly %!s(int64=8) %!d(string=hai) anos
pai
achega
6785ea3c47
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. 0 3
      initfiles/bash/etc/init.d/hpcc_common.in
  2. 3 0
      initfiles/sbin/hpcc_setenv.in

+ 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 *= *//'`