Performance of OperatingSystem.getProcesses() over a large period of time #2073
-
Hi guys, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 46 replies
-
Just a hunch, this may be related to finalizer usage, see #2009. You can try to inspect the heap when it gets slow to see if you've got GC issues. If this is the case, I'll be making some changes when JNA 5.12.0 is released (hopefully this week) and releasing OSHI 6.2.0 which should significantly improve performance. If you want to pre-test a fraction of the possible improvements, check out this branch that I put in a portion of the expected 5.12.0 changes. https://github.com/dbwiddis/oshi/tree/cleanermemory |
Beta Was this translation helpful? Give feedback.
Just a hunch, this may be related to finalizer usage, see #2009.
You can try to inspect the heap when it gets slow to see if you've got GC issues.
If this is the case, I'll be making some changes when JNA 5.12.0 is released (hopefully this week) and releasing OSHI 6.2.0 which should significantly improve performance.
If you want to pre-test a fraction of the possible improvements, check out this branch that I put in a portion of the expected 5.12.0 changes. https://github.com/dbwiddis/oshi/tree/cleanermemory