Linux Application Tracing with strace and friends | Into the Terminal 179

Why is your application slow? What is it even doing when you are sitting there with a blinking cursor waiting for it to return? How do you diagnose what a daemon or other service is actually doing? On this episode of Into the Terminal we are going to focus on application tracing. We will use tools like strace, ltrace, time, possibly bcc-tools (ebpf) and more to get more insights into what that application is really doing or, more importantly, what is it spending all it’s time doing on the system, while you are waiting for it to perform it’s function! - - - - Critical Administration Skills for Red Hat Enterprise Linux: Whether you are new to Linux or new to RHEL, join our hosts for a hands-on look into the commands and processes, ask questions, and grow your knowledge. Get Started with Red Hat Enterprise Linux: https://developers.redhat.com/register Try it for yourself: https://redhat.com/interactive-labs Join our Discord: https://red.ht/rhel-discord Nate Lager: https://social.undrground.org/@gangrif Scott McBrien:   / scott-mcbrien-349b356   00:00 Using Time Command 02:56 Strace Basics 06:41 Reading Syscalls with Man 08:37 Strace Summary Mode 12:07 Profiling Find Command 15:57 Attaching to Services 16:42 Apache Worker Tracing 23:48 Strace Counts on PID 25:44 Introducing Ltrace 28:21 eBPF and BCC Tools 29:58 BioTop and TCPTOP 33:15 File IO and Disk Mapping 35:20 Language Runtime Tracing