Stuff Goes Bad:Erlang In Anger

Digging In

深入理解

Whenever some ’in the large’ view (or logging, maybe) has pointed you towards a potential cause for an issue you’re having, it starts being interesting to dig around with a purpose. Is a process in a weird state? Maybe it needs tracing 16! Tracing is great whenever you have a specific function call or input or output to watch for, but often, before getting there, a lot more digging is required.
Outside of memory leaks, which often need their own specific techniques and are discussed in Chapter 7, the most common tasks are related to processes, and ports (file descriptors and sockets).

 当某些全局的指标(或日志logging)指明你遇见问题的可能原因时,就可以开始有目的的去深掘它的本质原因是什么啦。某进程处于一个奇怪的状态?可能需要tracing16这个进程!tracing非常棒,它可以追踪任意一个具体的函数调用时的输入或输出,但在此之前,我们还需要了解一些关于挖掘(digging)所必需了解的东西。

[16] See Chapter 9

[16] 详见 章节9