Questions tagged [lsof]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
60 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://...
2
votes
0answers
546 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
0answers
63 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
1answer
66 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 ...
5
votes
1answer
1k 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
1answer
42 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
2answers
2k 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
1answer
162 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
1answer
170 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
2answers
8k 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, ...
6
votes
1answer
1k 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
0answers
305 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
1answer
65 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.
11
votes
4answers
9k 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. $ ...
0
votes
0answers
13 views

Checking two process in same port [duplicate]

I'm new to ubuntu and not have an expereince in networking so i have problem with binding port that already in use I checked it by sudo lsof -i tcp | grep LISTEN and got pid of the port to check ...
2
votes
2answers
1k 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 ...
0
votes
1answer
1k 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
0answers
546 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 ...
5
votes
2answers
5k 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 ...
0
votes
1answer
4k 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 ...
1
vote
1answer
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
1answer
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 ...
2
votes
2answers
3k 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 .... ...
12
votes
4answers
8k 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
1answer
23k views

What means 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 ...