Giter Club home page Giter Club logo

spring-boot-actuator-server-config's Introduction

Spring Boot Actuator Server Config

Known Vulnerabilities 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

spring-boot-actuator-server-config's People

Contributors

timpeeters avatar dependabot-preview[bot] avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.