Re: [users@httpd] Apache keeping open deleted files

2016-04-18 Thread David Cunningham
Thank you for the replies Marat. On 18 April 2016 at 20:33, Marat Khalili wrote: > Well, apparently they are used as locks (mutexes) so that multiple Apache > processes could safely access common resources. You can guess specific > resources by file names. (Disclaimer: I'm not an Apache develop

Re: [users@httpd] Apache keeping open deleted files

2016-04-18 Thread Marat Khalili
Well, apparently they are used as locks (mutexes) so that multiple Apache processes could safely access common resources. You can guess specific resources by file names. (Disclaimer: I'm not an Apache developer, probably one of them reading this will give better answer.) The process shouldn't

Re: [users@httpd] Apache keeping open deleted files

2016-04-18 Thread David Cunningham
Hi Marat, Thanks for the reply. Do you know why Apache keeps them open? The process shouldn't need to end for the file to disappear - just the file descriptor to be closed. On 18 April 2016 at 16:54, Marat Khalili wrote: > Hello David, > > It is a normal practice in Linux to delete temporary f

Re: [users@httpd] Apache keeping open deleted files

2016-04-17 Thread Marat Khalili
Hello David, It is a normal practice in Linux to delete temporary files immediately after creating them. These files will still work for the process that keeps them open, and will automatically disappear as soon as the process ends. I typed lsof /run/lock on a couple of my Ubuntu machines wi

[users@httpd] Apache keeping open deleted files

2016-04-17 Thread David Cunningham
Hi, While reviewing filesystem usage we noticed lots of deleted files still open by Apache, as reported by lsof. Some example lines are below. Can anyone advise why Apache is keeping these files open, and if there's anything we can do about it? I have verified that the process numbers listed are