strace is your friend on Linux
2024-07-29
A few of my apps were taking an inordinate amount of time to launch (approximately 15 seconds). I was told I should prepend strace
in the command-line that executes the app to see what was wrong.
The output on the screen were many lines describing the system calls being made by that app. By noticing which lines were taking long to appear, I discovered the problem was DNS queries were taking too long. I changed the WiFi access point and my problem was fixed.
Comments
Write your comment: