Use resinstatusservlet to view the resin status

Source: Internet
Author: User

Resin2 does not have a JMX only available in resin3, nor does it provide an application that can view the system status like tomcat. When I recently looked at the document, I found that resin provided a resinstatusservlet from 2.0.5, it is only a servlet, so it can be embedded into your web application. it is also useful (resin3 can still be used)
By default, this servlet is not enabled. To enable it, edit resin. conf. The example is as follows:

Web-app ID = '/Admin'>
> True Allow-Admin >
Servlet-Mapping URL-Pattern = '/Resin-status'
Servlet-name = 'Com. Caucho. http. servlet. resinstatusservlet '>
= 'Read'/>
>

 
Security-Constraint>
IP-Constraint>127.0.0.1/32IP-Constraint>

Web-resource-collection >
URL-Pattern>/*URL-Pattern>
Web-resource-collection>
Security-Constraint>
Web-app>

In this way, access through URL http: // yourhost/yourapp/resin-status. This resinstatusservlet will also register a COM. caucho. HTTP. admin. the applicationadmin object is in your servlet context and the name is "Caucho. admin ".

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.