I'm able to find processes using top
or ps
. That's no problem.
Sometimes I find that some processes are taking up a lot of memory or cpu and I'm trying to identify what the root program is.
For instance, the process sort
sometimes just ends up taking 2-3 gigs of memory over like 4 hours. I'd like to know what program initiated the sort
process so I can try and fix it.
Best Answer
ps
has an option to access thePPID
/parent PID of a process:PPID
is the last column in this case.(Or use Activity Monitor by selecting
View
->All Processes, Hierarchically
)