Hi,
I have a script to determine the max memory to set a worker to start up at. The variable will need to end up being "-Xmx512m" or "-Xmx256m" or "-Xmx768m."
Everything works fine BUT when I set the "MEMORY" variable I get the "Cmmand not foundine 40: -Xmx512m" msg though the variable is the correct value and it starts up fine. Why do I get this message? Does it have something to do with "-" or "x"?
---------- Post updated at 12:56 PM ---------- Previous update was at 12:50 PM ----------
hmm, strange
So if I do this
MEMORY= '-Xmx'$maxMemSize
my worker starts up correctly but I get the error msg listed above.
if I do this
MEMORY='-Xmx'$maxMemSize or MEMORY=-Xmx$maxMemSize
I dont get the error msg and the worker doesnt start up...ideas?
my line to startup a worker is below(if it helps)
nohup $JAVA_HOME/bin/java -DappName=IPLoader -Xms128m $MEMORY -Duser.timezone=GMT -verbose:gc -cp $IPWORKER_CLASSPATH:$IPWORKER_HOME:$CLASSPATH Loader $LOADER_DIR >> $logfile 2>&1 &