You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using psutil.process_iter on a Windows 10 virtual machine (VirtualBox) with the open_files attribute is incredibly slow. Some processes take minutes to iterate over. I have been unable to reproduce this under bare-metal but it occurs consistently for me in several VMs. Is this an issue with psutil or something with the Windows VM?
for proc in process_iter(attrs=["name", "open_files"]):
print(proc.info)
The text was updated successfully, but these errors were encountered:
Warning: on Windows this method is not reliable due to some limitations of the underlying Windows API which may hang when retrieving certain file handles. In order to work around that psutil spawns a thread to determine the file handle name and kills it if it’s not responding after 100ms. That implies that this method on Windows is not guaranteed to enumerate all regular file handles (see issue 597). Tools like ProcessHacker has the same limitation.
Platform
Using psutil.process_iter on a Windows 10 virtual machine (VirtualBox) with the
open_files
attribute is incredibly slow. Some processes take minutes to iterate over. I have been unable to reproduce this under bare-metal but it occurs consistently for me in several VMs. Is this an issue with psutil or something with the Windows VM?The text was updated successfully, but these errors were encountered: