在什么情况下系统进程 (PID 4) 会保留打开的文件句柄? [英] Under which circumstances does the System process (PID 4) retain an open file handle?
问题描述
我在 Windows 服务器上运行的应用程序使用了 Jet/Access 数据库.由于某些原因,大约每两周一次,系统进程就会锁定数据库文件(PID 4,似乎已修复)
My application running on a Windows server makes use of a Jet/Access database. For some reasons around every two weeks that database file gets locked by the System process (PID 4, seems to be fixed)
经过一些谷歌搜索后,我发现其他一些用户的文件被该特殊进程锁定,但文件不同(当然).
After some googling I found some other users having their files locked by that special process, but different files (of course).
- 系统进程保持打开文件句柄的一般原因是什么?
- 我的应用程序是否是造成这种锁定情况的原因?
- 系统进程是否隐式打开了所有句柄?我可以想象,在进程崩溃后,句柄可能仍处于打开状态,系统进程以某种方式接管了该句柄.
- 我可以在我的应用程序中做一些事情来防止它发生吗?
推荐答案
在我看来,这听起来像是一个驱动程序级别的问题,并且句柄泄漏.
This sounds to me like a driver-level issue with a leaky handle.
如果您正在运行防病毒软件包,请尝试升级、禁用(暂时!)或切换到其他品牌.
If you're running an anti-virus package try upgrading, disabling (temporarily!) or switching to a different brand.
这篇关于在什么情况下系统进程 (PID 4) 会保留打开的文件句柄?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!