Skip to content

Instantly share code, notes, and snippets.

Created Dec 27, 2020
What would you like to do?
jmh + perf + async-profiler container
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 -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/ /lib64
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