用户工具

站点工具


light4j:cms
  • velocity优化
# front.xml
parser.pool.size=2不宜过大ParserPoolImpl很占内存103K*N
velocimacro.library.autoreload=false
  • tomcat共享jar
# 本地测试时,catalina.home和catalina.base不同,直接共享jar到${catalina.base}/lib即可。服务端需vi conf/catalina.properties,增加并复制共享jar到${tomcat.home}/share即可
common.loader="${catalina.base}/lib","${catalina.base}/lib/*.jar","${catalina.home}/lib","${catalina.home}/lib/*.jar","${catalina.home}/share/*.jar"
# sh share.sh,对比两个lib目录,排除spring包,复制共享jar到tomcat/share目录
# bin/catalina.sh
CATALINA_OPTS="-Xms74m -Xmx74m -Xmn10m -Xss228k -XX:SurvivorRatio=8"
CATALINA_OPTS="$CATALINA_OPTS -server -Djava.awt.headless=true -Djava.compiler=none -Duser.timezone=GMT+8 -Dcom.mysql.cj.disableAbandonedConnectionCleanup=true"
# 版本变化vi cache.xml,maxIdle》maxTotal,maxWait》maxWaitMillis
<property name="maxTotal" value="${redis.maxIdle}" />
<property name="maxWaitMillis" value="${redis.maxWait}" />
light4j/cms.txt · 最后更改: 2022/01/04 13:13 由 admin