以下是我修改的内容,以及对tomcat
可以修改的参数
scm
APR
模式启动步骤:
1
:将附件中的压缩包,在
/usr/local
下解压
2
:修改
../bin/catalina.sh
,在其中添加
CATALINA_OPTS="$CATALINA_OPTS -Djava.library.path=/usr/local/apr/lib"
3
:修改
../conf/server.xml
关闭
ssl
监听
<Listener className="org.apache.catalina.core.AprLifecycleListener"
SSLEngine="off" />
修改连接模式为
APR
<Connector port="8080" protocol="org.apache.coyote.http11.Http11AprProtocol"
URIEncoding="utf-8"
redirectPort="8443"
connectionTimeout="20000"
disableUploadTimeout="true" />
如果要修改线程池,在上述的连接控制中添加以下内容
<Connector port="8080" protocol="org.apache.coyote.http11.Http11AprProtocol"
maxThreads="500"
minSpareThreads="100"
maxSpareThreads="500"
acceptCount="500"
URIEncoding="utf-8"
redirectPort="8443"
转载于:https://www.cnblogs.com/xy51/p/9590326.html