Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site hangs in production #1599

Closed
HarelM opened this issue Sep 7, 2021 · 3 comments · Fixed by #1605
Closed

Site hangs in production #1599

HarelM opened this issue Sep 7, 2021 · 3 comments · Fixed by #1605
Assignees
Labels
bug Critical Needs to be fix ASAP

Comments

@HarelM
Copy link
Member

HarelM commented Sep 7, 2021

Bug

The site hangs in production.
We need to find the root cause of this.
One possible way to understand this can be found here:
aspnet/KestrelHttpServer#1267
A guide can be found here:
https://github.com/dotnet/coreclr/blob/cc8de13a8853a76fb3eb99cc209a4986eb3b2585/Documentation/building/debugging-instructions.md#debugging-coreclr-on-linux

The following is also suggested there:
https://github.com/benaadams/Ben.BlockingDetector

Also the following might prove useful to extract a dump when there's an issue:
https://docs.microsoft.com/en-us/dotnet/core/diagnostics/dotnet-dump

@HarelM
Copy link
Member Author

HarelM commented Sep 8, 2021

Open an issue in aspnet repo:
dotnet/aspnetcore#36274

@HarelM
Copy link
Member Author

HarelM commented Sep 8, 2021

The following are the needed steps in order to install .net core sdk in the container
https://docs.microsoft.com/en-us/dotnet/core/install/linux-debian#debian-10-

apt-get install -y wget
wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
apt-get update
apt-get install -y dotnet-sdk-5.0
dotnet tool install --tool-path /tools dotnet-trace
dotnet tool install --tool-path /tools dotnet-counters
dotnet tool install --tool-path /tools dotnet-dump
/tools/dotnet-dump collect -n dotnet

This will create a dump file that needs to be exported out of the container.

@HarelM
Copy link
Member Author

HarelM commented Sep 16, 2021

HarelM added a commit that referenced this issue Sep 17, 2021
* Initial dirty commit to see if this will solve #1599

* Clenaup
@HarelM HarelM added bug Critical Needs to be fix ASAP labels Oct 11, 2021
@HarelM HarelM modified the milestones: Version 9.9.169, Next Release Oct 11, 2021
@HarelM HarelM self-assigned this Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Critical Needs to be fix ASAP
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant