Git Product home page Git Product logo

async-profiler-actuator-endpoint's Introduction

async-profiler-actuator-endpoint

Maven Central Build Status

This project contains a spring boot actuator endpoint implementation which serves as a wrapper over async-profiler (https://github.com/jvm-profiling-tools/async-profiler). It allows sending an http profile request directly to the profiled spring boot service, and get the flame graph in the response (or in any other supported format).

It was tested with version 1.7.1 of async-profiler.

Preconditions:

  • The code looks for the async-profiler binary at /opt/async-profiler/build/libasyncProfiler.so. So the async-profiler binaries should be located at: /opt/async-profiler/ (or any other path which needs to be configured via the property: com.taboola.asyncprofiler.lib.path)
  • The profiled service should be a spring boot service with actuator included.

Usage Example:

Just include the endpoint configuration class in your application context configuration class, e.g:

@Configuration
@Import(AsyncProfilerEndpointConfig.class) //async-profiler actuator endpoint beans will get created
public class YourSpringConfigurationClass {
}

API endpoints:

  1. /async-profiler/profile - to profile the service (default duration is 60sec with eventType=cpu) and get the flame graph in the response.
  2. /async-profiler/stop - to stop a currently active profiling session, if any, and get its profiling output in the response.
  3. /async-profiler/events - to get the supported event types.
  4. /async-profiler/version - to get the profiler version.

async-profiler-actuator-endpoint's People

Contributors

rami-prilutsky avatar tomsisso avatar sternr avatar tsliwowicz 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.