Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by tye (Sage)
on May 04, 2006 at 19:47 UTC ( #547500=note: print w/replies, xml ) Need Help??


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

Heh, but that doesn't show me the one thing I'm interested in, the parent PID. The 'top' and 'ps' output don't have to be in sync; I just need a snapshot of 'ps' output at some point during the "bad time" in order to see who owns the newest 'httpd' processes.

FYI, your hoping wasn't enough (:

ps: euid: keyword not found ps: egid: keyword not found ps: ni:2: keyword not found ps: vsz:6: keyword not found ps: rss:6: keyword not found ps: stat:3: keyword not found ps: tname:6: keyword not found ps: stime: keyword not found ps: bsdtime: keyword not found ps: args: keyword not found PID %CPU %MEM 0 0.0 0.0 1 0.0 0.0 2 0.0 0.0 ...

- tye        

Replies are listed 'Best First'.
Re^5: 'A' web server takes another "time out" (root)
by Kanji (Parson) on May 04, 2006 at 19:56 UTC
    ps -axo pid,ppid,command

        --k.


      Kanji,
      Some of the other information suggested is probably useful to tye. In most cases, the specification of width doesn't work as pointed out below. In a few others, the keywords were invalid for FreeBSD's ps. The interesting thing is that 'args' is listed as a valid key word in TFM but still complained even though no width was specified.

      Cheers - L~R

Re^5: 'A' web server takes another "time out" (root)
by Hue-Bond (Priest) on May 04, 2006 at 20:15 UTC
    ps: euid: keyword not found ps: egid: keyword not found ps: ni:2: keyword not found

    Great :^(. It seems that that ps doesn't support field width. The field for the PPID is surprinsingly ;^) called "ppid". After searching for the manpage on google, I'd try something like ps -j, ps -l and ps -a -x -o pid,ppid (this last one is just for testing if ppid works).

    --
    David Serrano

Re^5: 'A' web server takes another "time out" (root)
by parv (Vicar) on May 05, 2006 at 01:30 UTC
    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).

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://547500]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2019-12-13 11:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?