remote stop service replication port 100.& lt connector port =\"8080 \"protocol =\"HTTP/ 1. 1\" connection timeout =\"20000 \"redirection port =\" 84" />
Current location - Quotes Website - Collection of slogans - Great God Tomcat asks for advice: What ports are 8080, 8009, 8443 and 8005? Apache communicates with tomcat through port 8009.
Great God Tomcat asks for advice: What ports are 8080, 8009, 8443 and 8005? Apache communicates with tomcat through port 8009.
& lt server port ="8005" shutdown="SHUTDOWN "> remote stop service replication port 100.

& lt connector port ="8080 "protocol ="HTTP/ 1. 1" connection timeout ="20000 "redirection port =" 8443 "uri encoding =" utf-8 "/> Where 8080 is a known HTTP port and 8443 is an HTTPS port.

< connector port ="8009 "protocol ="AJP/ 1.3" redirection port ="8443" />8009 is AJP port.

APACHE can access TOMCAT through AJP protocol to obtain port 8009.

Tomcat memory optimization

Tomcat memory optimization is mainly to optimize Tomcat startup parameters. We can set the JAVA_OPTS parameter in the Tomcat startup script catalina.sh

JAVA_OPTS parameter description

-server jdk-enabled server version;

-at initialization-the minimum memory of the -Xmsjava virtual machine;

-the maximum memory that the -Xmxjava virtual machine can use;

-XX:PermSize memory persistent reserve

-XX:MaxPermSize memory maximum permanent reserved area

Extended data:

Tomcat concurrency optimization

1.Tomcat connection related parameters

Parameters related to the number of connections in the configuration in server.xml under Tomcat configuration file conf are:

MinProcessors: the minimum number of idle connection threads, which is used to improve the processing performance of the system. The default value is 10.

MaxProcessors: the maximum number of connection threads, that is, the maximum number of concurrent requests; The default value is 75.

AcceptCount: the maximum number of connections allowed, which should be greater than or equal to maxProcessors. The default value is 100.

EnableLookups: whether to query the domain name in reverse; The value is true or false. In order to improve the processing power, it should be set to false.

ConnectionTimeout: network connection timeout, in milliseconds. Setting it to 0 means that it will never time out, which is a hidden danger. It can usually be set to 30000 milliseconds.