C
C#9mo ago
jace

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
jace
jaceOP9mo ago
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 suggestions
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
jace
jaceOP9mo ago
My hope was that there was something obvious with dotnet running with sudo vs not
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
jace
jaceOP9mo ago
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
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
jace
jaceOP9mo ago
did check top to see the differences
jace
jaceOP9mo ago
No description
Unknown User
Unknown User9mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server