1、JVM的推荐配置参数
java\bin\java -Xms1024m -Xmx4096m -XX:PermSize=256M -XX:MaxPermSize=512M -classpath "bin\bootstrap.jar" org.apache.catalina.startup.Bootstrap start
2、日志文件log4j.xml的等级推荐为error级别
<logger name="com.viewhigh">
<level value="error" />
<appender-ref ref="com.viewhigh.action" />
<appender-ref ref="com.viewhigh.common" />
<appender-ref ref="com.viewhigh.dao" />
<appender-ref ref="com.viewhigh.model" />
<appender-ref ref="com.viewhigh.service" />
<appender-ref ref="com.viewhigh.tasktimer" />
<appender-ref ref="com.viewhigh.util" />
</logger>
3、EAPConfig.properties文件中数据源参数的推荐设置
unieap.datasource.initialSize=150
unieap.datasource.maxActive=1000
unieap.datasource.maxIdle=800
unieap.datasource.maxWait=30000
4、ORACLE数据库的推荐参数配置
Memory_Target值设置为OS内存的70%
alter system set processes = 3000 scope = spfile;
//数据库连接数3000
原文地址:https://blog.51cto.com/4085457/2404344
时间: 2024-10-25 04:04:20