the jar XF command to get two directories meta-inf and org, by modifying the ServerInfo field in the Org/apache/catalina/util/serverinfo.properties file to Implementation to change the version information of our Tomcat.
The file information is as follows:
[Root@localhost ~]# cat org/apache/catalina/util/serverinfo.properties |grep-v ' ^$|# '
server.info=apache
Tomcat 8 entropy pool congestion slowdown (conversion), tomcatExplanation of Tomcat 8 entropy pool blocking slowdown Author: chszs, reprinted need to be noted. Blog homepage: http://blog.csdn.net/chszs
Tomcat 8 is very slow to start and there are no errors in the log. The following information is displayed in the log:
Log4j:[2015-10-29 15:47:11] INFO ReadPropert
Tomcat source code analysis (1): tomcat source code analysis
During this time, I briefly looked at the Tomcat source code and made a note here!
1. tomcat Architecture
Catalina: tomcat's top-level container. In the main () method, you can create a
not only easy to implement and debug, but also easy to understand and maintain. This Web application can run on a dedicated Web server or a PC. the operating system can be Windows, Linux, or Mac OS. The required software packages include the Java Runtime Environment (JDK 1.4 or later), the latest Tomcat version (Tomacat 4 or later), and Ant development tool (Ant or later ). Ant is used to create a Web application package (WAR), install and deploy the
1. First, make sure that you have installed jdk and set the JAVA_HOME environment variable. Then
1. First, make sure that you have installedJdk
With settingsJAVA
_HOME
Environment variable.
ThenHttp://tomcat.apache.org/
DownloadApache-tomcat-6.0.35.tar.gz,
I move it/Usr/local/webserver/
Then
Enter
Run
Code:
[Plain]
1. sudo tar apache-tomcat-6.0.35.tar.gz zxvf
Get a folderApache --
follows:
Note that this method is no longer recommended after tomcat6.0. The reason is that the tomcat server must be restarted every time you modify server. xml.
2. virtual directory ing method 2: Allow tomcat to automatically Map
Tomcat automatically manages all web applications under the webapps folder and maps it to a virtual directory. In other words, all
1. To the official website http://jakarta.apache.org/Tomcat Download the apache-tomcat-7.0.2.tar.gz installation file, the JDK assumes that the installation is complete, then install directly Tomcat.2. Installation# TAR-ZXVF apache-tomcat-7.0.2.tar.gz# LS//will be found in the current directory, more than one folderapa
1. The following information may be received when tomcat5.5 is started:Oct 30,200 6 11:54:51 am org. Apache. Catalina. Core. aprlifecyclelistener lifecycleeventInfo: the Apache Tomcat native library which allows optimal performance in production environments was not found on the java. library. path:/usr/local/jdk1.5.0 _ 08/JRE/lib/i386/Server:/usr/local/jdk1.5.0 _ 08/JRE/lib/i386: /usr/local/jdk1.5.0 _ 08/J
because the Tomcat default The log file does not start splitting, Catalina.out the continuous expansion of the file, resulting in a smaller system disk space, and management is difficult to manage, so you want to use a tool to split it. For ease of management, the split log keeps daily logs in a single file for easy log management. This article uses the cronolog tool. The installation process is as follows: 1. Download (latest version) # wgethttp://
CATALINA_HOME environment variable is not defined correctlyThis environment variable are needed to runThat is, the environment variable is required to set Catalina_home5. Set the CATALINA_HOME environment variable:5.1 By reading the Startup.bat batch file, we know that there is a bin directory under the CATALINA_HOME environment variable.And the bin directory has a catalina.bat file, so catalina_home point should be TomcatInstall the root directoryThe Tomca
application, we can change the application without restarting tomcat.
Host (a virtual host)
Name
Specify the Host Name
Appbase
The basic application directory, that is, the directory where the application is stored.
Unpackwars
If this parameter is set to true, Tomcat automatically decompress the war file. Otherwise, the application is directly run from the war file.
Logger (indicating logs,
, automatically load the new application, we can change the application without restarting tomcat.
Host (a virtual host)
Name
Specify the Host Name
Appbase
The basic application directory, that is, the directory where the application is stored.
Unpackwars
If this parameter is set to true, Tomcat automatically decompress the war file. Otherwise, the application is direc
information.
Directory
Location where log files are stored
Pattern
There are two values: Remote Host Name or IP address, user name, date, string of the first line of request, HTTP response code, and number of bytes sent. The combined method has more values than the common method.
It represents the entire container and is the top-level element of the
Environment Variable Prerequisites## do not set the variables in this script. Instead put them into a script# setenv.sh in Catalina_base/bin to keep your customizations separate.## CATALINA CATALINA is Apache Tomcat implemented serv Let container # # Catalina_home may point at your CATALINA "build" directory.#
until debugger was attached to begin execution, otherwise (if ' n '), starts execution R Ight away.
The answer explains that the use of the -xdebug method, primarily in interactive mode, is weaker in performance than using -agentlib . At the same time, the answer also explains the corresponding three parameters:Transport: There are two forms, the socket and the shared memory, which need to cross the machine and only use the socket Address: Port number, where the TCP protocol is u
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.