开发者

How to get the trace of process?

开发者 https://www.devze.com 2023-02-11 16:55 出处:网络
Suppose there is a process which is in inactive state from many days and i want to know until what time the process is in active state. Other th开发者_如何学JAVAan the log records where i can get that

Suppose there is a process which is in inactive state from many days and i want to know until what time the process is in active state. Other th开发者_如何学JAVAan the log records where i can get that information? This is unix platform.


Use strace debugging utility. You can attach to already running process, save output to log file and analyse it later.

[root@localhost ~]#
[root@localhost ~]# strace -o log -p 7166
Process 7166 attached - interrupt to quit
0

精彩评论

暂无评论...
验证码 换一张
取 消