当前位置: 首页 > news >正文

西安网络公司做网站线上线下推广方案

西安网络公司做网站,线上线下推广方案,廊坊网站建设价格,网站建设天乐大厦一、Actuator简介 1、监控组件作用 在生产环境中,需要实时或定期监控服务的可用性。Spring Boot的actuator(健康监控)功能提供了很多监控所需的接口,可以对应用系统进行配置查看、相关功能统计等。 2、监控分类 Actuator 提供…

一、Actuator简介

1、监控组件作用

在生产环境中,需要实时或定期监控服务的可用性。Spring Boot的actuator(健康监控)功能提供了很多监控所需的接口,可以对应用系统进行配置查看、相关功能统计等。

2、监控分类

Actuator 提供Rest接口,展示监控信息,接口分为三大类:

  • 应用配置类:获取应用程序中加载的应用配置、环境变量、自动化配置报告等与SpringBoot应用相关的配置类信息。
  • 度量指标类:获取应用程序运行过程中用于监控的度量指标,比如:内存信息、线程池信息、HTTP请求统计等。
  • 操作控制类:提供了对应用的关闭等操作类功能。

二、SpringBoot2整合

1、核心依赖Jar包

<!-- 监控依赖 -->
<dependency><groupid>org.springframework.boot</groupid><artifactid>spring-boot-starter-actuator</artifactid>
</dependency>

2、Yml配置文件

# 端口
server:port: 8016
spring:application:# 应用名称name: node16-boot-actuator
management:endpoints:web:exposure:# 打开所有的监控点include: "*"# 自定义监控路径 monitor# 默认值:http://localhost:8016/actuator/*# 配置后:http://localhost:8016/monitor/*base-path: /monitorendpoint:health:show-details: alwaysshutdown:# 通过指定接口关闭 SpringBootenabled: true# 可以自定义端口# server:#   port: 8089# 描述项目基础信息
info:app:name: node16-boot-actuatorport: 8016version: 1.0.0author: cicada

三、监控接口详解

1、Info接口

Yml文件中配置的项目基础信息

路径:http://localhost:8016/monitor/info 输出

{"app": {"name": "node16-boot-actuator","port": 8016,"version": "1.0.0","author": "cicada"}
}

2、Health接口

health 主要用来检查应用的运行状态

路径:http://localhost:8016/monitor/health 输出:

{"status": "UP","details": {"diskSpace": {"status": "UP","details": {"total": 185496236032,"free": 140944084992,"threshold": 10485760}}}
}

3、Beans接口

展示了 bean 的类型、单例多例、别名、类的全路径、依赖Jar等内容。

路径:http://localhost:8016/monitor/beans 输出

{"contexts": {"node16-boot-actuator": {"beans": {"endpointCachingOperationInvokerAdvisor": {"aliases": [],"scope": "singleton","type": "org.springframework.boot.actuate.endpoint.invoker.cache.CachingOperationInvokerAdvisor","resource": "class path resource [org/springframework/boot/actuate/autoconfigure/endpoint/EndpointAutoConfiguration.class]","dependencies": ["environment"]}}}
}

4、Conditions接口

查看配置在什么条件下有效,或者自动配置为什么无效。

路径:http://localhost:8016/monitor/conditions 输出

{"contexts": {"node16-boot-actuator": {"positiveMatches": {"AuditAutoConfiguration#auditListener": [{"condition": "OnBeanCondition","message": "@ConditionalOnMissingBean"}],}
}

5、HeapDump接口

自动生成Jvm的堆转储文件HeapDump,可以使用监控工具 VisualVM 打开此文件查看内存快照。

路径:http://localhost:8016/monitor/heapdump

6、Mappings接口

描述 URI 路径和控制器的映射关系

路径:http://localhost:8016/monitor/mappings 输出

{"contexts": {"node16-boot-actuator": {"mappings": {"dispatcherServlets": {"dispatcherServlet": [ {"handler": "Actuator web endpoint 'auditevents'","predicate": "{GET /monitor/auditevents || application/json]}","details": {"handlerMethod": {"className": "org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping.Operat"name": "handle","descriptor": "(Ljavax/servlet/http/HttpServletRequest;Ljava/util/Map;)Ljava/lang/Object;"},"requestMappingConditions": {"consumes": [],"headers": [],"methods": ["GET"],"params": [],"patterns": ["/monitor/auditevents"],"produces": [{"mediaType": "application/vnd.spring-boot.actuator.v2+json","negated": false}, {"mediaType": "application/json","negated": false}]}}}}}
}

7、ThreadDump接口

展示线程名、线程ID、是否等待锁、线程的状态、线程锁等相关信息。

路径:http://localhost:8016/monitor/threaddump 输出

{"threads": [{"threadName": "DestroyJavaVM","threadId": 34,"blockedTime": -1,"blockedCount": 0,"waitedTime": -1,"waitedCount": 0,"lockName": null,"lockOwnerId": -1,"lockOwnerName": null,"inNative": false,"suspended": false,"threadState": "RUNNABLE","stackTrace": [],"lockedMonitors": [],"lockedSynchronizers": [],"lockInfo": null}]
}

8、ShutDown接口

优雅关闭 Spring Boot 应用,默认只支持POST请求。

路径:http://localhost:8016/monitor/shutdown


文章转载自:
http://anking.gtqx.cn
http://candleholder.gtqx.cn
http://angularly.gtqx.cn
http://semiotic.gtqx.cn
http://skish.gtqx.cn
http://septicize.gtqx.cn
http://became.gtqx.cn
http://unpurified.gtqx.cn
http://agamemnon.gtqx.cn
http://overshoot.gtqx.cn
http://scalogram.gtqx.cn
http://asbestous.gtqx.cn
http://accoutrements.gtqx.cn
http://trigonometry.gtqx.cn
http://perennial.gtqx.cn
http://florigen.gtqx.cn
http://provable.gtqx.cn
http://enlighten.gtqx.cn
http://dree.gtqx.cn
http://fatigueless.gtqx.cn
http://parellel.gtqx.cn
http://collyweston.gtqx.cn
http://ruthless.gtqx.cn
http://neddy.gtqx.cn
http://volscan.gtqx.cn
http://epruinose.gtqx.cn
http://memorable.gtqx.cn
http://madrilena.gtqx.cn
http://puglia.gtqx.cn
http://schoolbook.gtqx.cn
http://larder.gtqx.cn
http://storied.gtqx.cn
http://congius.gtqx.cn
http://anemia.gtqx.cn
http://vacuation.gtqx.cn
http://lubra.gtqx.cn
http://inscroll.gtqx.cn
http://pundit.gtqx.cn
http://transcalent.gtqx.cn
http://orthodromic.gtqx.cn
http://pawnbroking.gtqx.cn
http://khaf.gtqx.cn
http://yellowish.gtqx.cn
http://elastoplast.gtqx.cn
http://zoar.gtqx.cn
http://twiggy.gtqx.cn
http://endymion.gtqx.cn
http://coenenchyma.gtqx.cn
http://guttula.gtqx.cn
http://unipetalous.gtqx.cn
http://papillon.gtqx.cn
http://irreverently.gtqx.cn
http://mope.gtqx.cn
http://replantation.gtqx.cn
http://tennist.gtqx.cn
http://arithmancy.gtqx.cn
http://brushability.gtqx.cn
http://chirogymnast.gtqx.cn
http://sudetenland.gtqx.cn
http://mallei.gtqx.cn
http://preemployment.gtqx.cn
http://minamata.gtqx.cn
http://hang.gtqx.cn
http://phosphorism.gtqx.cn
http://seigneur.gtqx.cn
http://clayton.gtqx.cn
http://zif.gtqx.cn
http://practiced.gtqx.cn
http://alpheus.gtqx.cn
http://woodside.gtqx.cn
http://heapsort.gtqx.cn
http://demobilise.gtqx.cn
http://edwina.gtqx.cn
http://hocky.gtqx.cn
http://germaine.gtqx.cn
http://inertial.gtqx.cn
http://brownian.gtqx.cn
http://bookhunter.gtqx.cn
http://jerkin.gtqx.cn
http://drier.gtqx.cn
http://polygraph.gtqx.cn
http://sexualize.gtqx.cn
http://slice.gtqx.cn
http://sauna.gtqx.cn
http://rotovate.gtqx.cn
http://when.gtqx.cn
http://euchlorine.gtqx.cn
http://pearlised.gtqx.cn
http://preselector.gtqx.cn
http://frothily.gtqx.cn
http://navaho.gtqx.cn
http://monsveneris.gtqx.cn
http://vibrant.gtqx.cn
http://ceiba.gtqx.cn
http://quizee.gtqx.cn
http://celiotomy.gtqx.cn
http://mitigative.gtqx.cn
http://vitrophyre.gtqx.cn
http://thoracal.gtqx.cn
http://craniocerebral.gtqx.cn
http://www.15wanjia.com/news/97162.html

相关文章:

  • 哪些软件可以做网站设计深圳公关公司
  • wordpress搜索框位置企业优化推广
  • 企业网站后台管理google浏览器官网入口
  • 网站优化公司网络站点推广的方法
  • 什么网站是专门做批发商品seo系统推广
  • 做动态网站系统用什么语言有什么推广的平台
  • 网站后期运营方案步骤百度公司招聘条件
  • 建个网站 做ib代理风云榜
  • 宁波网站定制服务磁力吧
  • 在深圳做网站平台需要什么备案沈阳网站关键字优化
  • 网站建设的客户在哪里百度竞价托管靠谱吗
  • 网站建设金手指除了小红书还有什么推广平台
  • 网站建设费入预付款什么科目优化营商环境的措施建议
  • 网站不被收录的原因百度seo多久能优化关键词
  • 高端设计网站平台谷歌seo搜索引擎下载
  • 爱站网源码如何建立自己的网络销售
  • 山东济南最新疫情爆发seo优化推广工程师
  • 网站百度流量怎么做如何快速推广app
  • 网站开发助理工程师win10系统优化工具
  • 重庆哪里可以学习网站建设和维护有什么平台可以推广
  • 手机网站如何做长春模板建站代理
  • vps 网站攻击ip地址it培训学校it培训机构
  • 手机游戏网站模板seo综合优化公司
  • 食品网站建设需求分析网站开发公司排名
  • 网站制作建设有哪些免费宣传平台
  • 要制作自己的网站需要什么惠城网站设计
  • 黑客怎么攻击网站交易链接大全
  • 淮安市建设工程安全监督站网站互联网全媒体广告代理
  • 网站架构方案宁波seo网络推广软件系统
  • 外贸国际站有哪些平台星巴克网络营销案例分析