Get the App
SLTechnology News&Howtos  ›  Servers  › 

CentOS process resources occupy plateau cause analysis and command detailed explanation

Shulou Source: shulou.com Published: 2022-06-01 12:15:15 10月01日 Update

This article mainly introduces "CentOS process resources occupied plateau analysis and command detailed explanation". In daily operation, I believe many people have doubts about CentOS process resources occupying plateau analysis and command detailed explanation. The editor consulted all kinds of data and sorted out simple and easy-to-use operation methods, hoping to help you answer the doubts of "CentOS process resources occupying plateau analysis and command detailed explanation". Next, please follow the editor to study!

1. View the thread of the process:

Ps-eLf | egrep 'gateserver | UID'

2. Trace thread calls:

Strace-p 15530

3. Count the trumpet CPU time of function calls in the thread:

Strace-p 16334-c

Strace-p 15530-o out.file # Export to out.file file

4. Only the calls to the recv function are displayed:

Strace-p 5314-f-F-e recv

5. Gdb debug thread:

Gdb-p pid

6. View the file descriptor opened by the thread:

Lsof-p pid

At this point, the study on "CentOS process resources occupying plateau analysis and command detailed explanation" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: Processes threads causes cause analysis commands resources analysis learning functions files more help utility next trumpets articles methods time theory knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Shulou Tech Info Redmi macOS vpn