How do you find out which processes have a lock on a given file, in Linux?
3 Answers
Try fuser
In the example below, I have run fuser against a jar file and it has shown me the pids for the processes using the jar.
$ fuser app.jar
app.jar: 15529m 26293m 23017m