jmh + perf + async-profiler container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM amazonlinux:2 | |
RUN amazon-linux-extras enable corretto8 | |
RUN yum -y install java-1.8.0-amazon-corretto-devel sudo vim perf tar && yum -y clean all | |
RUN curl -sL https://github.com/jvm-profiling-tools/async-profiler/releases/download/v1.8.2/async-profiler-1.8.2-linux-x64.tar.gz -o /tmp/async-profiler-1.8.2-linux-x64.tar.gz \ | |
&& mkdir /usr/local/async-profiler \ | |
&& tar xf /tmp/async-profiler-1.8.2-linux-x64.tar.gz --strip-components 1 -C /usr/local/async-profiler \ | |
&& cp /usr/local/async-profiler/build/libasyncProfiler.so /lib64 | |
COPY kernel_params.sh /kernel_params.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo 1 > /proc/sys/kernel/perf_event_paranoid | |
echo 0 > /proc/sys/kernel/kptr_restrict |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment