Questions tagged [lsof]
A command-line tool that lists information about files opened by running processes.
32
questions
0
votes
0
answers
469
views
Get rid of lingering file found with `lsof +L1`
Ubuntu 20.04.4 LTS
Hi,
I had a large database file that filled up my disk space and I deleted it with rm big-file.
Then when I wanted to install something (the CLion backend via SSH) I got the prompt ...
5
votes
1
answer
126
views
Most of the entries in the NAME column of the output from lsof +D /tmp do not begin with /tmp. Why is this the case?
I'm part of a lab that has a shared scientific computing enviornment. My system administrator just told everyone in the lab that one of the nodes I am using is about to crash because /tmp is full. I ...
2
votes
0
answers
1k
views
Understanding too many open files and current limits
A Java application will sometimes have issues after the logs point to too many open files.
Okay, let's look at some limits...
cat /proc/sys/fs/file-max -> 200000
ulimit -n -> 1024
...
0
votes
1
answer
86
views
How to fix a broken port: *:x11
I am trying to figure out what are running on my ports:
Port 4000:
$ lsof -i :4000
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
apache2 129245 root 6u IPv6 999421 0t0 ...
0
votes
1
answer
2k
views
Why does Odoo show: OSError: [Errno 98] Address already in use?
How do I find what's preventing odoo from starting properly?
nicholas@mordor:~$
nicholas@mordor:~$ odoo
2021-05-01 00:30:04,854 44082 INFO ? odoo: Odoo version 14.0-20210430
2021-05-01 00:30:04,854 ...
4
votes
0
answers
3k
views
xdg-document is keeping my files open
I use Master PDf editor installed through flathub to edit some PDf files.
When I close it, I can sse by lsof | grep /media/<MYUSER>/<DEVICE> that xdg-document is keeping my file open.
What ...
3
votes
1
answer
3k
views
Ubuntu 18.04: Maximum number of clients reached - related to dbus-daemon
From time to time I get this message, I cant start application when this happens.
I've tried those links:
Can't start applications due to “Maximum number of clients reached” error and
How can I ...
2
votes
1
answer
2k
views
What are the device numbers reported by lsof?
What are the device numbers reported by lsof?
I read the man page, Identify devices from lsof, and this.
Still I do not know what is its meaning. In particular, for this case, what can I infer from ...
0
votes
1
answer
318
views
How do I locate a file returned by lsof?
I'm using Ubuntu Linux 16. I recently noticed a substantial discrepancy between what "df" reports and what "du" reports for the total size of my "/" directory. So following this link -- https://...
3
votes
0
answers
3k
views
Identify devices from lsof
We have certain Ubuntu (18.04) servers operating .NET Core apps on Kestrel. Recently the apps and OSes have been hanging, requiring entire VM restart.
What we found was the app had way too many file ...
2
votes
0
answers
304
views
Difference between lsof and ulimit -a
I have a problem in my jaxws-service and it returns the error:
too many open files
I wanted to monitor open files. When I inserted lsof, a file used by tomcat is returning a number that is higher ...
0
votes
1
answer
135
views
lsof does not detect reading images and video files for thumbnails
Does lsof command detect the reading of images and video files for setting thumbnails for them in nautilus?
I want lsof command to show a file that is read by nautilus for set the thumbnail for that ...
6
votes
1
answer
3k
views
What is the gmain process?
I used lsof | grep home/$USER and I found that the gmain process likes to open my personal files. What does this process do and is there any available documentation that explains it in context of ...
0
votes
1
answer
129
views
Monitoring File Read/Write Rates
I have a directory which is NFS-mounted in a virtual machine (kvm), and which is located on the host machine. I see a lot of net activity between the host & vm, but oddly there is little disk ...
5
votes
2
answers
4k
views
Is NetworkManager sending HTTP requests to googleusercontent.com?
I am using Ubuntu 17.10 on my desktop PC, I've been monitoring network traffic with Etherape. I noticed HTTP requests from my PC(casa hostname) to googleusercontent.com (104.198.143.177).
So I used ...
0
votes
1
answer
284
views
Unable to debug Too Many Open Processes from lsof
I followed the instructions from here, but my lsof file is 56,000 lines long. I tried opening it to figure out which process is creating so much noise, but it looks like gibberish to me.
How do I ...
0
votes
1
answer
226
views
strange command by root user whois_psa when run lsof command ubuntu 16.04
I've done some hardening, added a bunch of rules to my firewall, removed NTP permissions and restricted port 123. But now I get a weird entry in my lsof command when looking at running connections.
...
3
votes
2
answers
10k
views
Linphone: could not start tls transport on port 5060, maybe this port is already used?
update:
Probably this is because of NAT, although that might an Ekiga specific problem.
I've tried multiple clients on this machine, cannot get any SIP clients to work for me. On the same network, ...
7
votes
1
answer
2k
views
Who eats all my file descriptors and thus memory?
my current system: 14.04.4 LTS (GNU/Linux 3.13.0-85-generic x86_64)
$ free
total used free shared buffers cached
Mem: 16366288 16090588 275700 ...
0
votes
0
answers
433
views
How to use lsof with SSH ControlPath?
I am extensively using SSH ControlPath and would like to use the lsof tool in order to check which process is keeping a ControlPath socket up and running.
I am using OpenSSH_7.2p2 Ubuntu-4ubuntu1, ...
-1
votes
1
answer
66
views
what is that job that cannot be done without "lsof"?
I want to know the use of the overwhelming output of lsof and maybe a specific example where lsof feels like a blessing.
19
votes
4
answers
19k
views
Why does lsof complain about tracefs?
Every execution of lsof issues a warning about the TraceFS:
$ lsof any-file
lsof: WARNING: can't stat() tracefs file system /sys/kernel/debug/tracing
Output information may be incomplete.
$ ...
2
votes
2
answers
2k
views
Determinate if a file is already opened
I want to create a bash script to determine if my file is already opened by another user.
I have already tried with lsof but it didn't work as i wanted. The files can have different types of ...
1
vote
1
answer
2k
views
What exactly is a connection through socket or what does the output of lsof tell us?
I'm streaming some files from S3 to an EC2 instance to get summary data from the headers. I use key.close(fast=True) for all the keys I get from boto.s3.bucket.Bucket.list() (python library to access ...
2
votes
0
answers
773
views
Why doesn't lsof show localhost TCP connections in 14.04?
I have two servers running 12.04.4 and 14.04.1 respectively. Both have nginx (port 80) and a Java process (port 8080).
As expected, the lsof output for the Java process (sudo lsof -nP -p $PID) on ...
6
votes
2
answers
7k
views
How to unlock file, locked by a process
The file is locked by a process, java in my case. I only want the lock to be released.
lsof | grep /home/user/workspace1
A temporary solution was to 'End Process' from 'System Monitor'.
But ...
1
vote
1
answer
5k
views
Unmount gvfs samba share with open file
I have a samba share mounted. I'm trying to unmount it on the commandline.
$ gvfs-mount -u smb://server/root/
Error unmounting mount: Filesystem is busy
I ran lsof to find open files, but I can't ...
3
votes
1
answer
1k
views
Processes allotting excessive disk space to (deleted) .xsession-errors file
My root disk is full to the brim because of, I suspect, disk space locked up by a ballooning .xsession-errors file. The ballooning is caused by running processes that keep the error file open and ...
5
votes
1
answer
2k
views
Is it normal for thousands of files to be opened by Ubuntu programs?
Having used lsof, as suggested in Too many open files - how to find the culprit , I've found that thousands of files are open due to operating-system style programs such as unity-2d-, gnome-do, and ...
3
votes
2
answers
4k
views
Why does lsof show the same file descriptor for different processes?
lsof -i :80
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
gnome-pan 28597 murat 18u IPv4 2907888 0t0 TCP ....
gnome-pan 28597 murat 19u IPv4 2907903 0t0 TCP ....
...
14
votes
5
answers
15k
views
Which applications are using internet
How can I check which applications are using internet?
How to block internet accessing one particular application?
Is there any GUI tool that exist for it in Ubuntu Software Centre?
Thanks in advance!
12
votes
2
answers
29k
views
What is the meaning of this error message: lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/nes/.gvfs
When I use lsof with sudo like this
sudo lsof ~
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/nes/.gvfs
Output information may be incomplete.
However, when I use it ...