To change the settings, create a file named setenv.bat for windows or setenv.sh for Linux with entry as below:
视窗:
set JAVA_OPTS="-Xms256m -Xmx512m"
LC:
export JAVA_OPTS="-Xms256m -Xmx512m"
简略地将这一文件(Septenv.bat/setenv.sh)归档成百分数。 你的指挥档案(Catalina.bat/catalina.sh)已经做了如下陈述:
视窗:
if exist "%CATALINA_HOME%insetenv.bat" call "%CATALINA_HOME%insetenv.bat"
LC:
if [ -r "$CATALINA_BASE/bin/setenv.sh" ]; then
. "$CATALINA_BASE/bin/setenv.sh"
elif [ -r "$CATALINA_HOME/bin/setenv.sh" ]; then
. "$CATALINA_HOME/bin/setenv.sh"
fi
This will take care the rest.