spring_reference/V. Spring Boot Actuator/47. Process monitoring.md

8 lines
515 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

### 47. 进程监控
在Spring Boot执行器中你可以找到几个创建有利于进程监控的文件的类
- `ApplicationPidFileWriter`创建一个包含应用PID的文件默认位于应用目录文件名为application.pid
- `EmbeddedServerPortFileWriter`创建一个或多个包含内嵌服务器端口的文件默认位于应用目录文件名为application.port
默认情况下这些writers没有被激活但你可以使用下面描述的任何方式来启用它们。