dotnet core 8 application runs very slow/breaks if I run as sudo but fast/no issues as non sudo. Why
On Amazon Linux 2023 t3.medium (2 vCPU, 4GB).
Literally running
dotnet app.dll
runs the app perfectly but sudo dotnet app.dll
has issues and runs much more slowly. Weird issues like:
flurl.Http.FlurlParsingException: Response could not be deserialized to JSON
No clue what's going on here and why the change is so drastic between running default ssm-user
and root
9 Replies
I'm using harness (ci/cd) to deploy and it needs to run as
root
so im trying to see if I can solve this with root
but open to other suggestionsUnknown User•8mo ago
Message Not Public
Sign In & Join Server To View
My hope was that there was something obvious with dotnet running with sudo vs not
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
Thanks. Not near my computer but any recommendations to prove the slow down? I'd assume htop to view how much CPU/ram sudo is using vs non sudo but maybe other ways to confirm if it's more ram/CPU etc
I do see online that the server only meets minimum requirements for a dotnet core application so maybe Ill upgrade the server to recommended settings at least
Unknown User•8mo ago
Message Not Public
Sign In & Join Server To View
did check
top
to see the differencesUnknown User•8mo ago
Message Not Public
Sign In & Join Server To View