配置tomcat内存:
windows:
set JAVA_OPTS=%JAVA_OPTS% -server -Xms2g -Xmx2g -XX:MaxNewSize=256m -XX:PermSize=512m -XX:MaxPermSize=512m
linux:
JAVA_OPTS=%JAVA_OPTS% -server -Xms2g -Xmx2g -XX:MaxNewSize=256m -XX:PermSize=512m -XX:MaxPermSize=512m
配置context:
host节点:
<Host name="localhost" appBase="/data/project/webapps_health" unpackWARs="true" autoDeploy="false"> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t "%r" %s %b" /> <Context path="/health" docBase="health-0.1" reloadable="false"/> </Host>