Hi :

In HBASE-21926,  Andrew introduced the great profile tool (async-profiler )
into our HBase.
It's very easy to use this:
1.  you need to download the binary of async-profier from here:
https://github.com/jvm-profiling-tools/async-profiler
2.  then you need to set a java option which point to the home of
async-profiler lib, here I set:
     -Dasync.profiler.home=/home/work/soft
    because my async-profiler is under here:

[work@soft]$ pwd
/home/work/soft
[work@soft]$ tree
.
├── async-profiler-1.5-linux-x64.tar.gz
├── build
│   ├── async-profiler.jar
│   ├── jattach
│   └── libasyncProfiler.so
├── CHANGELOG.md
├── LICENSE
├── profiler.sh
└── README.md

1 directory, 8 files

3. finally, you can need restart the RS and click the [profier] tab in RS
web UI,  then you will see the flame graph.

You can also see the java doc for more details:
https://github.com/apache/hbase/blob/858d30dd30159de70ac62d44c0ee0278708f2dec/hbase-http/src/main/java/org/apache/hadoop/hbase/http/ProfileServlet.java

Thanks.

On Mon, Jun 3, 2019 at 9:15 PM Jean-Marc Spaggiari <jean-m...@spaggiari.org>
wrote:

> Hi all,
>
> Not sure it's the right plateform, but can someone explain me how flame
> graphs (Like the one here)
> https://issues.apache.org/jira/browse/HBASE-22532 are
> generated?
>
> Thanks,
>
> JMS
>

Reply via email to