View tomcat memory and tomcat memory

Source: Internet
Author: User

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.

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.