# IF USER_MEM_ARGS the environment variable is set, use it to override ALL MEM_ARGS values
USER_MEM_ARGS="-Xms4096m -Xmx16384m -XX:MaxPermSize=4096m -XX:+UseParallelGC -XX:ParallelGCThreads=8"
export USER_MEM_ARGS
?
if [ "${USER_MEM_ARGS}" != "" ] ; then
MEM_ARGS="${USER_MEM_ARGS}"
export MEM_ARGS
fi
?
本文摘自 :https://blog.51cto.com/b