Category: Tomcat

Tomcat log cutting script 0

Tomcat log cutting script

Hits: 0Original script download address: link: Extraction code: kt3d #!/bin/bash tomcat_logpath=/apps/apache-tomcat-web/logs # Copy the log file contents to a new file cp $tomcat_logpath /catalina.out $tomcat_logpath /catalina_date -d '-1 days' +%Y%m%d.log # Empty tomcat default log output file...

Tomcat 6 or 7, 8 concurrency optimization 0

Tomcat 6 or 7, 8 concurrency optimization

Hits: 0 Modify the tomcat/conf/ [server.xml] configuration file. <Connector executor="tomcatThreadPool" port="80" protocol="HTTP/1.1" connectionTimeout="20000" enableLookups="false" redirectPort="8443" URIEncoding="UTF-8" acceptCount="1000" /> tomcat7 configuration: tomcat6 configuration: tomcat 8 configuration: protocol=”org.apache.coyote.http11.Http11Nio2Protocol” Parameter Description maxThreads Client requests the maximum number...

How Tomcat filters requests 0

How Tomcat filters requests

Hits: 0[1. Modify the web.xml of the tomcat] configuration file conf (add the red part) 2. Add the following content <security-constraint> <web-resource-collection> <url-pattern>/*</url-pattern> <http-method>PUT</http-method> <http-method>DELETE</http-method> <http-method>HEAD</http-method> <http-method>OPTIONS</http-method> <http-method>TRACE</http-method> </web-resource-collection> <auth-constraint> </auth-constraint> </security-constraint> <login-config> <auth-method>BASIC</auth-method>...