Fully featured low overhead profiler for Java EE and Java SE platforms.
Easy to use performance and memory .NET profiler for Windows and Linux.
Performance monitoring and profiling of Jenkins, Bamboo, TeamCity, Gradle, Maven, Ant and JUnit.

Need steps for alpine container profiling

Moderators: Vladimir Kondratyev, Anton Katilin

Need steps for alpine container profiling

Postby sachinss » Fri Aug 13, 2021 12:25 pm

Hi,
I am trying to profile the dotnet core application deployed to aspnet:3.1-alpine3.13 image container with https://www.yourkit.com/dotnet/download ... 3-b100.zip. I referred the "https://www.yourkit.com/docs/java/help/docker.jsp" this article to setup but getting below error
-----------------------------------------------------------
/usr/local/YourKit-NetProfiler-2021.3/bin # ./YourKitTools.sh status
Failed to load /usr/local/YourKit-NetProfiler-2021.3/dotnet/64/shared/Microsoft.NETCore.App/5.0.3/libcoreclr.so, error: Error relocating /usr/local/YourKit-NetProfiler-2021.3/dotnet/64/shared/Microsoft.NETCore.App/5.0.3/libcoreclr.so: __isnan: symbol not found
Segmentation fault
-----------------------------------------------

I am new to container and linux so please excuse me if it is basic question, but it will be helpful if you share steps to use the linux offering of the dotnet profiler.

Thanks,
Sachin
sachinss
 
Posts: 2
Joined: Fri Aug 13, 2021 12:05 pm

Re: Need steps for alpine container profiling

Postby Anton Katilin » Sun Aug 15, 2021 9:35 am

Hello Sachin,

The instructions https://www.yourkit.com/docs/java/help/docker.jsp you refer to are for Java profiling. You're trying to profile .NET.

Could you please provide the full content of your docker file.

Best regards,
Anton
Anton Katilin
 
Posts: 6069
Joined: Wed Aug 11, 2004 8:37 am

Re: Need steps for alpine container profiling

Postby Anton Katilin » Sun Aug 15, 2021 10:03 am

Update:

Please try to change the compatibility library installation code from

RUN apk add --no-cache libc6-compat
ENV LD_LIBRARY_PATH=/lib64

to

RUN apk add --no-cache gcompat

Anyway, it's an Alpine compatibility related issue. Running within a non-Alpine container should eliminate it.
Anton Katilin
 
Posts: 6069
Joined: Wed Aug 11, 2004 8:37 am

Re: Need steps for alpine container profiling

Postby sachinss » Mon Aug 16, 2021 3:11 pm

Hi Anton,
Thanks for the information. I ran my container by adding below lines to dockerfile to install the profiler by taking the reference of java link(https://www.yourkit.com/docs/java/help/docker.jsp).
--------------------------------------------------------------------------
RUN wget https://www.yourkit.com/dotnet/download ... 3-b100.zip -P /tmp/ && \
unzip /tmp/YourKit-NetProfiler-2021.3-b100.zip -d /usr/local && \
rm /tmp/YourKit-NetProfiler-2021.3-b100.zip

RUN apk add --no-cache libc6-compat
ENV LD_LIBRARY_PATH=/lib64
EXPOSE 10001
-------------------------------------------------------------
When install the gcompat package the profiles got loaded and I was able to attach the profiler to process. Which I confirmed with status command. But after that my application stopped working so as mentioned by you compatibility issue of Alpine is there and I need to try no-alpine container.

Thanks
sachinss
 
Posts: 2
Joined: Fri Aug 13, 2021 12:05 pm

Re: Need steps for alpine container profiling

Postby genuvenue » Wed Oct 27, 2021 10:18 am

Genuvenue is the best service provider for Event Planner in Alberta. We offer a wide variety of services to its clients like Wedding event, Birthday event and Ceremony event and other event services.
genuvenue
 
Posts: 1
Joined: Wed Oct 27, 2021 10:17 am


Return to .NET Profiler

Who is online

Users browsing this forum: No registered users and 1 guest

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.