Mryqu's Notes


  • 首页

  • 搜索
close

[Spring Boot] 监控和管理Spring Boot应用

时间: 2015-07-11   |   分类: Service+JavaEE   Spring     |   阅读: 147 字 ~1分钟

本博文在[Spring Boot] Hello Spring LDAP 基础上稍作修改,尝试一下监控和管理Spring Boot应用。

application.properties改动

server.context-path=/HelloSpringLdapOdm
server.port=8080

spring.profiles.active=test,dev

# spring.dao.exceptiontranslation.enabled=false
yqu.ldap.url=ldap://127.0.0.1:18880
yqu.ldap.userDN=uid=admin,ou=system
yqu.ldap.password=secret
yqu.ldap.base=dc=jayway,dc=se
yqu.ldap.clean=true

management.port=8081
management.address=127.0.0.1
endpoints.shutdown.enabled=true

applicationDefaultJvmArgs: [
    "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=55558"
]

测试

  • autoconfig: Displays an auto-configuration report showing allauto-configuration candidates and the reason why they ‘were’ or‘were not’ applied.[Spring Boot] 监控和管理Spring Boot应用
  • beans: Displays a complete list of all the Spring beans in yourapplication.[Spring Boot] 监控和管理Spring Boot应用
  • configprops: Displays a collated list of all@ConfigurationProperties.[Spring Boot] 监控和管理Spring Boot应用
  • dump: Performs a thread dump.[Spring Boot] 监控和管理Spring Boot应用
  • env: Exposes properties from Spring’sConfigurableEnvironment.[Spring Boot] 监控和管理Spring Boot应用
  • health: Shows application health information (when theapplication is secure, a simple ‘status’ when accessed over anunauthenticated connection or full message details whenauthenticated).[Spring Boot] 监控和管理Spring Boot应用
  • info: Displays arbitrary application info.[Spring Boot] 监控和管理Spring Boot应用
  • mappings: Displays a collated list of all @RequestMappingpaths.[Spring Boot] 监控和管理Spring Boot应用
  • metrics: Shows ‘metrics’ information for the currentapplication.[Spring Boot] 监控和管理Spring Boot应用
  • trace: Displays trace information (by default the last few HTTPrequests).[Spring Boot] 监控和管理Spring Boot应用
  • shutdown: Allows the application to be gracefully shutdown (notenabled by default).[Spring Boot] 监控和管理Spring Boot应用

参考

Spring Boot: Monitoring and management over HTTP
Spring Boot Actuator:Production-ready features

标题:[Spring Boot] 监控和管理Spring Boot应用
作者:mryqu
声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 3.0 CN 许可协议。转载请注明出处!

#spring# #boot# #management# #monitoring#
Gradle Git Plugin介绍
如何链接并执行GitHub上的JavaScript文件
  • 文章目录
  • 站点概览

Programmer & Architect

662 日志
27 分类
1472 标签
GitHub Twitter FB Page
    • application.properties改动
    • 测试
    • 参考
© 2009 - 2023 Mryqu's Notes
Powered by - Hugo v0.120.4
Theme by - NexT
0%