View tomcat memory and tomcat memory
View the memory size of existing tomcat
1. Start tomcat
2. Access http: // localhost: 8080/manager/status, and enter the user and password you entered when installing tomcat, such as admin, password admin (password entered during tomcat installation)
Note: Add User, modify conf/tomcat-users.xml
<? Xml version = '1. 0' encoding = 'utf-8'?>
<Tomcat-users>
<Role rolename = "tomcat"/>
<Role rolename = "role1"/>
<Role rolename = "manager"/>
<Role rolename = "admin"/>
<User username = "tomcat" password = "tomcat" roles = "tomcat"/>
<User username = "both" password = "tomcat" roles = "tomcat, role1"/>
<User username = "role1" password = "tomcat" roles = "role1"/>
<User username = "admin" password = "admin" roles = "admin, manager"/>
</Tomcat-users>
3. Enter the Server Status page. You can see it in the JVM table.
Free memory: 241.80 MB Total memory: 254.06 MB Max memory: 508.06 MB
The above text indicates the current idle memory, the current total memory, and the maximum memory available.
Make sure that the maximum memory is large enough for tomcat to run properly.