Skip to content

Instantly share code, notes, and snippets.

@Yasushi
Created Dec 27, 2020
Embed
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 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
#!/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