io.github.sa1nt:ibm-heapdump-spring-boot-actuator

A lib to make the Spring Boot Actuator `/actuator/heapdump` endpoint work on IBM JRE

License

License

Categories

Categories

Spring Boot Container Microservices
GroupId

GroupId

io.github.sa1nt
ArtifactId

ArtifactId

ibm-heapdump-spring-boot-actuator
Last Version

Last Version

0.8
Release Date

Release Date

Type

Type

jar
Description

Description

io.github.sa1nt:ibm-heapdump-spring-boot-actuator
A lib to make the Spring Boot Actuator `/actuator/heapdump` endpoint work on IBM JRE
Project URL

Project URL

https://github.com/sa1nt/ibm-heapdump-spring-boot-actuator
Project Organization

Project Organization

Pivotal Software, Inc.
Source Code Management

Source Code Management

https://github.com/sa1nt/ibm-heapdump-spring-boot-actuator/tree/master

Download ibm-heapdump-spring-boot-actuator

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.springframework.boot : spring-boot-actuator jar 1.5.14.RELEASE
org.springframework : spring-webmvc jar

Project Modules

There are no modules declared in this project.

ibm-heapdump-spring-boot-actuator

A library that that makes the Spring Boot Actuator /actuator/heapdump endpoint work both on IBM J9 JVM and on HotSpot JVM.

First tries to see if the app is on J9 JVM, and falls back to Spring Boot default if it doesn't seem so.

Usage

Use the Spring Boot starter

  1. Add the Starter dependency to POM
<dependency>
    <groupId>io.github.sa1nt</groupId>
    <artifactId>ibm-heapdump-spring-boot-actuator-starter</artifactId>
    <version>0.8</version>
</dependency>

Configure it yourself

  1. Add the artifact as a dependency
<dependency>
    <groupId>io.github.sa1nt</groupId>
    <artifactId>ibm-heapdump-spring-boot-actuator</artifactId>
    <version>0.8</version>
</dependency>
  1. Configure J9HeapdumpMvcEndpoint bean
import io.github.sa1nt.ibmheapdump.J9HeapdumpMvcEndpoint;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class IBMHeapdumpConfiguration {
    @Bean
    public J9HeapdumpMvcEndpoint ibmHeapdumpMvcEndpoint() {
        return new J9HeapdumpMvcEndpoint();
    }
}

Build

  1. Clone the repo
  2. Run mvn clean package

Versions

Version
0.8