Tomcat configures memory and remote debug ports
To configure the memory for Tomcat, add the JAVA_OPTS parameter to catalina. bat, as shown in the following figure:
SET JAVA_OPTS =-Xms256m-Xmx1024m-XX: MaxNewSize = 256 m-XX: MaxPermSize = 428 m-Duser. timezone = Asia/Shanghai
To configure the remote debug port, you must add the CATALINA_OPTS parameter to catalina. bat, as shown in the following figure:
SET CATALINA_OPTS =-server-Xdebug-Xnoagent-Djava. compiler = NONE-Xrunjdwp: transport = dt_socket, server = y, suspend = n, address = 1021
Then perform remote debugging in eclipse:
Then you can perform remote debugging.
For more Tomcat tutorials, see the following:
Install and configure the Tomcat environment in CentOS 6.6
Install JDK + Tomcat in RedHat Linux 5.5 and deploy Java Projects
Tomcat authoritative guide (second edition) (Chinese/English hd pdf + bookmarks)
Tomcat Security Configuration and Performance Optimization
How to Use Xshell to view Tomcat real-time logs with Chinese garbled characters in Linux
Install JDK and Tomcat in CentOS 64-bit and set the Tomcat Startup Procedure
Install Tomcat in CentOS 6.5
Tomcat details: click here
Tomcat: click here
This article permanently updates the link address: