Posts

Showing posts with the label Tomcat

Tomcat startup memory settings

Tomcat startup memory settings   The startup of Tomcat is divided into startupo.bat startup and registration as the startup of the windows service, which are explained one by one below. 1.startup.bat start Find catalina.bat in the tomcat_home / bin directory, open it with a text editor, and add the following line: set JAVA_OPTS = -Xms1024M -Xmx1024M -XX: PermSize = 256M -XX: MaxNewSize = 256M -XX: MaxPermSize = 256M Explain the parameters: -Xms1024M: Initialize the heap memory size (note that if M is not added, the unit is KB) -Xmx1029M: Maximum heap memory size -XX: PermSize = 256M: Initialize class loading memory pool size -XX: MaxPermSize = 256M: Maximum class loading memory pool size -XX: MaxNewSize = 256M: This is unclear, there is a saying There is also a -server parameter, which means that the server starts when the jvm is started, which is slower than the client, but the performance is better. You can choose it yourself. 2. The windows servic...