Tomcat7.0.5 startup Optimization

Source: Internet
Author: User

To put it simply, remove AJP Connector and APR to support listener, and clear the webapps directory.

It only takes 580 milliseconds to start Tomcat!

1. My tomcat does not need to be integrated with Apache, so AJP is not required.

2. My tomcat is specially used for local testing and NiO optimization without APR

 

In addition, it must be mentioned that the jdpa startup method of tomcat7.0.5 is very simple.

Modify startup. BAT to find call "% executable %" start % __line_args % to call
"% Executable %" JPDA start % pai_line_args %
In this way, modify it in the Java method.CodeYou do not need to re-load the context, and do not need to log on again.

 

Alternatively, you can directly use Catalina. Bat jdpa start without modifying startup. bat!

 

The command parameters for enabling jdpa are as follows:

Jdk1.4:

 

-Xdebug
-Xrunjdwp: Transport = dt_socket, address = 8787, Server = Y, suspend = N

Jdk1.5 +:

 

-Agentlib: jdwp = transport = dt_socket, Server = Y, suspend =
N
Address = 8000

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.