Last active
June 17, 2020 18:18
-
-
Save mgrzaslewicz/b7c137ba43ea8917ae01a6e23f1e678e to your computer and use it in GitHub Desktop.
List resources used by a process (open sockets, open files, memory)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # all open descriptors | |
| ls -l /proc/{pid}/fd | |
| lsof -a -p {pid} | |
| # memory | |
| # socket connections | |
| # open files | |
| # distinct ports | |
| # JVM heap dump | |
| jmap -dump:live,format=b,file=/tmp/dump.hprof {jvmPid} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment