Questions tagged [lsof]

A command-line tool that lists information about files opened by running processes.

33 questions
21
votes
4 answers

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. $ mount | grep trace tracefs on…
Zilk
  • 454
15
votes
5 answers

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!
Tachyons
  • 17,455
12
votes
2 answers

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 without sudo, I don't get this error. What does this…
NES
  • 33,935
8
votes
0 answers

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// that xdg-document is keeping my file open. What is xdg-document, why it is keeping the file open and how can…
7
votes
1 answer

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 4047472 1019652 5253144 -/+ buffers/cache: …
mdo
  • 243
6
votes
2 answers

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 terminating java(Java Virtual Machine) would…
arpit
  • 255
6
votes
1 answer

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 Ubuntu?
5
votes
2 answers

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 lsof and ss to 'identify' process behind these…
user779752
5
votes
1 answer

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 nautilus. Only one of the top 50 is an…
Andrew Grimm
  • 1,354
5
votes
1 answer

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 have been trying to understand how I am using /tmp…
3
votes
2 answers

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, an Android tablet can call an IP phone, no problem,…
Thufir
  • 4,631
3
votes
1 answer

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 dumping data into it, i.e., PID from several…
Kambiz
  • 141
  • 6
3
votes
2 answers

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 .... dropbox 28624 murat 18u IPv4 2755213 0t0 …
myildirim
  • 221
3
votes
1 answer

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 diagnose/debug "maximum number of clients reached" X…
yossico
  • 131
3
votes
0 answers

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 descriptors for network sockets. i.e.…
icelava
  • 181
1
2 3