deleted lockfile

55 views
Skip to first unread message

Florian La Roche

unread,
Apr 18, 2012, 2:54:45 PM4/18/12
to mod...@googlegroups.com
On RHEL6.2 with mod_wsgi 3.2 or with current hg checkins for 3.4, I see that
sub-processes still have a fd open for a deleted lockfile. Is this intended behaviour
or some left-over fd?

This can be seen with "lsof +L1":
COMMAND  PID   USER   FD   TYPE DEVICE SIZE/OFF NLINK   NODE NAME
httpd   4041   root   13w   REG  252,1        0     0 788369 /var/run/moin-wsgi.4041.0.1.lock (deleted)
httpd   4043 apache   13w   REG  252,1        0     0 788369 /var/run/moin-wsgi.4041.0.1.lock (deleted)
httpd   4044 apache   13w   REG  252,1        0     0 788369 /var/run/moin-wsgi.4041.0.1.lock (deleted)
httpd   4045 apache   13wW  REG  252,1        0     0 788369 /var/run/moin-wsgi.4041.0.1.lock (deleted)
httpd   4046 apache   13w   REG  252,1        0     0 788369 /var/run/moin-wsgi.4041.0.1.lock (deleted)
httpd   4047 apache   13w   REG  252,1        0     0 788369 /var/run/moin-wsgi.4041.0.1.lock (deleted)
httpd   4053 apache   13w   REG  252,1        0     0 788369 /var/run/moin-wsgi.4041.0.1.lock (deleted)
httpd   4141 apache   13w   REG  252,1        0     0 788369 /var/run/moin-wsgi.4041.0.1.lock (deleted)
httpd   4465 apache   13w   REG  252,1        0     0 788369 /var/run/moin-wsgi.4041.0.1.lock (deleted)
httpd   4466 apache   13w   REG  252,1        0     0 788369 /var/run/moin-wsgi.4041.0.1.lock (deleted)
httpd   4467 apache   13w   REG  252,1        0     0 788369 /var/run/moin-wsgi.4041.0.1.lock (deleted)
httpd   4468 apache   13w   REG  252,1        0     0 788369 /var/run/moin-wsgi.4041.0.1.lock (deleted)
httpd   4469 apache   13w   REG  252,1        0     0 788369 /var/run/moin-wsgi.4041.0.1.lock (deleted)
httpd   4470 apache   13w   REG  252,1        0     0 788369 /var/run/moin-wsgi.4041.0.1.lock (deleted)
httpd   4475 apache   13w   REG  252,1        0     0 788369 /var/run/moin-wsgi.4041.0.1.lock (deleted)
httpd   4476 apache   13w   REG  252,1        0     0 788369 /var/run/moin-wsgi.4041.0.1.lock (deleted)

Or with cd /proc && ls -l */fd/ | grep deleted
l-wx------. 1 root root 64 Apr 18 20:50 13 -> /var/run/moin-wsgi.4041.0.1.lock (deleted)
l-wx------. 1 root root 64 Apr 18 20:50 13 -> /var/run/moin-wsgi.4041.0.1.lock (deleted)
l-wx------. 1 root root 64 Apr 18 20:50 13 -> /var/run/moin-wsgi.4041.0.1.lock (deleted)
l-wx------. 1 root root 64 Apr 18 20:50 13 -> /var/run/moin-wsgi.4041.0.1.lock (deleted)
l-wx------. 1 root root 64 Apr 18 20:50 13 -> /var/run/moin-wsgi.4041.0.1.lock (deleted)
l-wx------. 1 root root 64 Apr 18 20:50 13 -> /var/run/moin-wsgi.4041.0.1.lock (deleted)
l-wx------. 1 root root 64 Apr 18 20:50 13 -> /var/run/moin-wsgi.4041.0.1.lock (deleted)
l-wx------. 1 root root 64 Apr 18 20:50 13 -> /var/run/moin-wsgi.4041.0.1.lock (deleted)
l-wx------. 1 root root 64 Apr 18 20:50 13 -> /var/run/moin-wsgi.4041.0.1.lock (deleted)
l-wx------. 1 root root 64 Apr 18 20:50 13 -> /var/run/moin-wsgi.4041.0.1.lock (deleted)
l-wx------. 1 root root 64 Apr 18 20:50 13 -> /var/run/moin-wsgi.4041.0.1.lock (deleted)
l-wx------. 1 root root 64 Apr 18 20:50 13 -> /var/run/moin-wsgi.4041.0.1.lock (deleted)
l-wx------. 1 root root 64 Apr 18 20:50 13 -> /var/run/moin-wsgi.4041.0.1.lock (deleted)
l-wx------. 1 root root 64 Apr 18 20:50 13 -> /var/run/moin-wsgi.4041.0.1.lock (deleted)
l-wx------. 1 root root 64 Apr 18 20:50 13 -> /var/run/moin-wsgi.4041.0.1.lock (deleted)
l-wx------. 1 root root 64 Apr 18 20:50 13 -> /var/run/moin-wsgi.4041.0.1.lock (deleted)

best regards,

Florian La Roche

Graham Dumpleton

unread,
Apr 18, 2012, 9:14:28 PM4/18/12
to mod...@googlegroups.com
Check to see if you have any zombie Apache processes, possibly
labelled as something else if display-name was used with
WSGIDaemonProcess. If you do, see if it is the zombie processes which
are referencing them.

Graham

> --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/modwsgi/-/FnT4CZc1lTMJ.
> To post to this group, send email to mod...@googlegroups.com.
> To unsubscribe from this group, send email to
> modwsgi+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/modwsgi?hl=en.

Reply all
Reply to author
Forward
0 new messages