Chapter 5

Getting geeky – tracing and debugging applications

Abstract

In this chapter, we will be doing some proper investigative work, like the best of private investigators. We will learn how to trace programs and the kernel, and finally use an application debugger to walk through the execution of a code all the way to assembly instructions.

Keywords

strace
ltrace
lsof
vmstat
iostat
perf
gdb

Working with strace and ltrace

Sometimes, the process of investigating problems by reading logs and examining the overall behavior of the system will not yield fruitful results. The root cause of the issue affecting your customer base or your applications will remain a mystery. At this stage, you will need to dig in deeper, and this means analyzing what ...

Get Problem-solving in High Performance Computing now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.