0

How to prevent Apache using MMap from write-locks on a file while serving on Windows 2k8?

view story
linux-howto

http://serverfault.com – I am running an Apache 2.2.4 on Windows 64bit using the local NTFS file system. I enabled the Mmap option and noticed that Apache seems to acquire a write lock and hold onto it for a long period. In my example it is serving a 2MB XML file. Unfortunately I need another process to be able to update this XML file periodically but the lock will make it impossible. As soon as I disable MMap the writing to the XML file works well. Can you point me in the right direction to learn more about MMap and why it acquires the lock and how to enable it to allow the file to be updated by a second process? (HowTos)