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
Bug description
When using process_iter to iterate through process list, it is impossible to filter out some well-known processes, because in resulting Process structure name field has a wrong value, from what I reckon it contains binary name and a cropped command line, e.g. (notice 2nd line, where you can see my application myTestEnvAppInst being run and a cropped command line passed to it instead of the name):
very difficult, as you have to use some regexing to get it right. I guess this comes from binary structure of /proc but right now it doesn't always work properly.
The text was updated successfully, but these errors were encountered:
This may have been resolved in psutil 5.6.3, which fixed a few things regarding process names and command line arguments. Can you please try that version?
This issue has been automatically closed because there has been no response for more information from the original author. Please reach out if you have or find the answers requested so that this can be investigated further.
AIX
Bug description
When using
process_iter
to iterate through process list, it is impossible to filter out some well-known processes, because in resultingProcess
structurename
field has a wrong value, from what I reckon it contains binary name and a cropped command line, e.g. (notice 2nd line, where you can see my applicationmyTestEnvAppInst
being run and a cropped command line passed to it instead of the name):This is what I get when I execute this code:
Not all processes have wrong names, e.g.:
Most of them are OK.
I also compared psutil's results to system's
ps
using this code:and got the same pid as in the snippet above, i.e.
6095186
. I also checked theps
output manually and the process name is also as expected:This issue is making process list filtering like this:
very difficult, as you have to use some regexing to get it right. I guess this comes from binary structure of
/proc
but right now it doesn't always work properly.The text was updated successfully, but these errors were encountered: