http://www.perlmonks.org?node_id=547550


in reply to Re^4: 'A' web server takes another "time out" (root)
in thread 'A' web server takes another "time out"

Well, "ppid" is one of the values to be specified for option "-o", "ps(1)". Try something like (tested on one of the Pair shared hosts running FreeBSD 4.8-STABLE) ...
ps -wwax -o ppid,pid,pgid,rss,vsz,nice,%mem,%cpu,rgid,ruser,user,stat, +command \ | sort -k1,1n -k2,2n
... there are other options listed related to paging & swapping, and (real & saved) user & group id. If you specify the "-c" option along with "-o command", only command name will show up (w/o the arguments).