-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 3.0.5
-
Fix Version/s: 4.4.2
-
Component/s: Lock / Autolock
-
Epic Link:
-
Tags:
-
Sprint:nxDrive 11.1.28
-
Story Points:1
When looking for opened files, the current code does:
# function: get_open_files() from autolock.py for proc in psutil.process_iter(): ....
This returns a lot of unused informations and we are seeing several memory errors in that function. As we just need the PID, we could lower the amount of data retrieved using:
for proc in psutil.process_iter(attrs=["pid"]): ....