lsof seems to have duplicate entries for me.
1:fs:java 19644 4961 abc mem REG 252,1 126331 118159613 abc.jar
1:fs:java 19644 4962 abc mem REG 252,1 126331 118159613 abc.jar
lsof format is:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
19644 is PID. abc is USER. what is 4961 and 4962? And why do we have 100s of these. Only difference among all of these is 3rd column 4961, 4962 and so on?
From the lsof 4.89 man page: "-K selects the listing of tasks (threads) of processes, on dialects where task (thread) reporting is supported."
Version 4.89 of lsof on Ubuntu 16.04 can display a TID header using the -K flag.
$ lsof -K /usr/share/jenkins/jenkins.war
COMMAND PID TID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 6533 6534 jenkins cwd unknown /proc/6533/task/6534/cwd (readlink: Permission denied)
java 6533 6534 jenkins rtd unknown /proc/6533/task/6534/root (readlink: Permission denied)
java 6533 6534 jenkins txt unknown /proc/6533/task/6534/exe (readlink: Permission denied)
java 6533 6534 jenkins 0u unknown
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With