Spring Boot Actuator Server Config

Enables configuration of Spring Boot management server when running on a separate port.

License

License

Categories

Categories

Spring Boot Container Microservices config Application Layer Libs Configuration
GroupId

GroupId

com.github.timpeeters
ArtifactId

ArtifactId

spring-boot-actuator-server-config
Last Version

Last Version

2.1.1
Release Date

Release Date

Type

Type

jar
Description

Description

Spring Boot Actuator Server Config
Enables configuration of Spring Boot management server when running on a separate port.
Project URL

Project URL

https://github.com/timpeeters/spring-boot-actuator-server-config
Source Code Management

Source Code Management

https://github.com/timpeeters/spring-boot-actuator-server-config

Download spring-boot-actuator-server-config

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.timpeeters/spring-boot-actuator-server-config/ -->
<dependency>
    <groupId>com.github.timpeeters</groupId>
    <artifactId>spring-boot-actuator-server-config</artifactId>
    <version>2.1.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.timpeeters/spring-boot-actuator-server-config/
implementation 'com.github.timpeeters:spring-boot-actuator-server-config:2.1.1'
// https://jarcasting.com/artifacts/com.github.timpeeters/spring-boot-actuator-server-config/
implementation ("com.github.timpeeters:spring-boot-actuator-server-config:2.1.1")
'com.github.timpeeters:spring-boot-actuator-server-config:jar:2.1.1'
<dependency org="com.github.timpeeters" name="spring-boot-actuator-server-config" rev="2.1.1">
  <artifact name="spring-boot-actuator-server-config" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.timpeeters', module='spring-boot-actuator-server-config', version='2.1.1')
)
libraryDependencies += "com.github.timpeeters" % "spring-boot-actuator-server-config" % "2.1.1"
[com.github.timpeeters/spring-boot-actuator-server-config "2.1.1"]

Dependencies

compile (7)

Group / Artifact Type Version
org.springframework : spring-beans jar
org.springframework : spring-context jar
org.springframework : spring-core jar
org.springframework.boot : spring-boot jar
org.springframework.boot : spring-boot-actuator-autoconfigure jar
org.springframework.boot : spring-boot-autoconfigure jar
org.springframework.boot : spring-boot-configuration-processor Optional jar

test (9)

Group / Artifact Type Version
junit : junit jar
org.apache.tomcat.embed : tomcat-embed-core jar
org.assertj : assertj-core jar 3.11.1
org.springframework : spring-test jar
org.springframework.boot : spring-boot-starter-actuator jar
org.springframework.boot : spring-boot-starter-logging jar
org.springframework.boot : spring-boot-starter-test jar
org.springframework.boot : spring-boot-starter-web jar
org.springframework.boot : spring-boot-test jar

Project Modules

There are no modules declared in this project.

Spring Boot Actuator Server Config

Known Vulnerabilities Dependabot Status Maven Central

This project allows to configure the Spring Boot management connector separately from the default connector.

Versions

Multiple branches are maintained to support multiple Spring Boot versions. The following tables show the relation between the Spring Boot version and the Spring Boot Actuator Server Config version.

Spring Boot Spring Boot Actuator Server Config Branch
1.5.x 1.0.x 1.0.x
2.0.x 2.0.x 2.0.x
2.1.x 2.1.x master

Installation

  1. Add the following Maven dependency:
<dependency>
    <groupId>com.github.timpeeters</groupId>
    <artifactId>spring-boot-actuator-server-config</artifactId>
    <version>X.X.X</version>
</dependency>

Thread pool example

Spring Boot allows to configure the web container to listen on multiple ports. Using the server.port property, we can configure the port for the public traffic. Using the management.port, we can configure the port for the management (Actuator) traffic. It might make sense to use a big thread pool for the public traffic while using a smaller thread pool for management traffic. By default Spring Boot will apply all the settings of the default port to the management port as well. Using spring-boot-actuator-server-config, we can configure the management port independently.

Below we leverage the following properties to configure the management thread pool: management.server.tomcat.max-threads and management.server.tomcat.min-spare-threads.

management.server.port=8081
management.server.tomcat.max-threads=5
management.server.tomcat.min-spare-threads=${management.tomcat.max-threads}

server.port=8080
server.tomcat.max-threads=200
server.tomcat.min-spare-threads=${server.tomcat.max-threads}

References

Versions

Version
2.1.1
2.1.0
2.0.3
2.0.2
2.0.1
2.0.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0