catalina.sh(Windows下为catalina.bat)前段#注释信息完后在第一行添加: JAVA_OPTS=" -server -Xms1000M -Xmx1000M -Xss512k -XX:+AggressiveOpts -XX:+UseBiasedLocking -XX:+DisableExplicitGC -XX:MaxTenuringThreshold=15 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:LargePageSizeInBytes=128m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -Djava.awt.headless=true " server.xml 修改如下,注意端口修改为自己的 <Connector port="20101" protocol="org.apache.coyote.http11.Http11NioProtocol" maxHttpHeaderSize="8192" maxThreads="1000" minSpareThreads="100" maxSpareThreads="1000" minProcessors="100" maxProcessors="1000" enableLookups="false" compression="on" compressionMinSize="1024" noCompressionUserAgents="gozilla, traviata" compressableMimeType="text/html,text/xml,text/javascript,text/css,text/plain" connectionTimeout="25000" URIEncoding="utf-8" acceptCount="1000" disableUploadTimeout="true" redirectPort="20301" />
本文为程序员之家原创文章,转载无需和我联系,但请注明来自程序员之家www.baldhome.com
叶卑微:个人博客上线了
2020-03-06 16:01:31 回复