25.3.4. 使用 HTTP 端点检查健康检查

健康检查自动部署到 JBoss EAP 上的 健康 上下文中。

That means that in addition to being able to examine it using the management CLI, you can also obtain the current health using the HTTP endpoint. The default address for the `/health` endpoint, accessible from the management interfaces, is `http://127.0.0.1:9990/health`.
  1. 要使用 HTTP 端点来获取服务器当前的健康状况,可使用以下 URL:
http://HOST:9990/health

访问此上下文时,以 JSON 格式显示健康检查,指示服务器是否正常运行。此端点检查 存活度和 就绪度探测 的健康状况。

  1. /health/live 端点检查 存活度 探测的当前健康状况。
http://HOST:9990/health/live
  1. /health/ready 端点检查 就绪 探测的当前健康状况。
http://HOST:9990/health/ready