Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
3ebaf115
Commit
3ebaf115
authored
Apr 11, 2014
by
Jakub Kubrynski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extended documentation for applicaiton pid monitoring
parent
620d8eb8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletion
+30
-1
documentation-overview.adoc
...g-boot-docs/src/main/asciidoc/documentation-overview.adoc
+2
-1
production-ready-features.adoc
...oot-docs/src/main/asciidoc/production-ready-features.adoc
+28
-0
No files found.
spring-boot-docs/src/main/asciidoc/documentation-overview.adoc
View file @
3ebaf115
...
@@ -119,7 +119,8 @@ When you're ready to push your Spring Boot application to production, we've got
...
@@ -119,7 +119,8 @@ When you're ready to push your Spring Boot application to production, we've got
* *Monitoring:*
* *Monitoring:*
<<production-ready-features.adoc#production-ready-metrics, Metrics>> |
<<production-ready-features.adoc#production-ready-metrics, Metrics>> |
<<production-ready-features.adoc#production-ready-auditing, Auditing>> |
<<production-ready-features.adoc#production-ready-auditing, Auditing>> |
<<production-ready-features.adoc#production-ready-tracing, Tracing>>
<<production-ready-features.adoc#production-ready-tracing, Tracing>> |
<<production-ready-features.adoc#production-ready-process-monitoring, Process>>
== Advanced topics
== Advanced topics
Lastly, we have a few topics for the more advanced user.
Lastly, we have a few topics for the more advanced user.
...
...
spring-boot-docs/src/main/asciidoc/production-ready-features.adoc
View file @
3ebaf115
...
@@ -746,6 +746,34 @@ servlet containers support a uniform Java DSL for customizing the error handling
...
@@ -746,6 +746,34 @@ servlet containers support a uniform Java DSL for customizing the error handling
[[
production
-
ready
-
process
-
monitoring
]]
==
Process
monitoring
In
Spring
Boot
Actuator
you
can
find
`
ApplicationPidListener
`
which
creates
file
containing
application
PID
(
by
default
in
application
directory
and
file
name
is
`
application
.
pid
`).
It
's not activated by default, but you can do it in two simple
ways described below.
[[production-ready-process-monitoring-configuration]]
=== Extend configuration
In `META-INF/spring.factories` file you have to activate the listener:
[indent=0]
----
org.springframework.context.ApplicationListener=\
org.springframework.boot.actuate.system.ApplicationPidListener
----
[[production-ready-process-monitoring-programmatically]]
=== Programmatically
You can also activate this listener by invoking `SpringApplication.addListeners(...)`
method and passing `ApplicationPidListener` object. You can also customize file name
and path through constructor.
[[production-ready-whats-next]]
[[production-ready-whats-next]]
== What to read next
== What to read next
If you want to explore some of the concepts discussed in this chapter, you can take a
If you want to explore some of the concepts discussed in this chapter, you can take a
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment