GithubHelp home page GithubHelp logo

aaukhatov / docker-centos-jemalloc Goto Github PK

View Code? Open in Web Editor NEW
9.0 0.0 2.0 16 KB

This is docker image for diagnostic native memory leaks in Java

License: Apache License 2.0

Dockerfile 63.38% Shell 36.62%
docker java jemalloc nmt

docker-centos-jemalloc's Introduction

Docker image with Java 8 and jemalloc

The docker image intended for debugging native memory leaks.

Tools

Configure

Configure Java to use jemalloc using LD_PRELOAD.

LD_PRELOAD="/usr/local/lib/libjemalloc.so"

Enable profiling using MALLOC_CONF.

MALLOC_CONF="prof_leak:true,prof:true,lg_prof_interval:25,lg_prof_sample:18,prof_prefix:/tmp/jeprof"

Reports

Use jeprof to produce a text report or a nice graph over the allocations โ€“ eventually the leak should stand out.

Graphical report

jeprof --svg /tmp/jeprof.* > jeprof-report.svg

Text report

jeprof --text /tmp/jeprof.* > jeprof.log

Run Docker Container

docker run -ti --rm aukhatov/centos-jemalloc:8u191b09

docker-centos-jemalloc's People

Contributors

aaukhatov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-centos-jemalloc's Issues

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.