Bläddra i källkod

HPCC-16211 Thor slaves need MALLOC_ARENA_MAX env var set

Signed-off-by: Mark Kelly <mark.kelly@lexisnexis.com>
Mark Kelly 8 år sedan
förälder
incheckning
6785ea3c47
2 ändrade filer med 3 tillägg och 3 borttagningar
  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 *= *//'`