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