Results 1 to 14 of 14
  1. #1
    Join Date
    Mar 2004
    Posts
    1,005

    ps aux and other commands

    Hello,

    I wanted to know which netword/bandwidth/process monitoring commands you kno?

    Usually i am using ps aux,ps -aux | grep anything,top,netstat -anp|grep anything

    And whats the best combination to run to find out whats/where from is overloading teh server?

    For example ps aux doesnt show up IPs

    Also can you please let me know whats the difference between ps aux and ps -aux ?
    Best Regards,
    Namesniper

  2. #2
    Join Date
    Mar 2005
    Location
    Maine, USA
    Posts
    302
    ps aux and ps -aux are the same thing. it's just the switch.
    you could try using ps aux --forest to give you a layout of all the processes running in hierarcial order.
    lsof is another command to see what ip addresses are connected to what port on your box.

  3. #3
    Join Date
    Dec 2002
    Location
    chica go go
    Posts
    11,858
    /sbin/ifconfig is pretty useful for bandwidth monitoring.

    I also use tail for monitoring of log files

    tail -f /var/log/messages

    ls -lah /usr/local/apache/domlogs | grep "May 26" | grep "17:50"

    to find websites that have been active in the past hour / minute

  4. #4
    Join Date
    Jun 2003
    Posts
    961
    Originally posted by hawk82
    ps aux and ps -aux are the same thing. it's just the switch.
    actually not, see "Why does "ps -aux" complain about a bogus '-'?" at http://procps.sourceforge.net/faq.html

  5. #5
    Join Date
    Mar 2004
    Posts
    1,005
    Good info..

    Originally posted by mikeylove
    /sbin/ifconfig is pretty useful for bandwidth monitoring.

    I also use tail for monitoring of log files

    tail -f /var/log/messages

    ls -lah /usr/local/apache/domlogs | grep "May 26" | grep "17:50"

    to find websites that have been active in the past hour / minute
    Best Regards,
    Namesniper

  6. #6
    Join Date
    Mar 2004
    Posts
    1,005

    Wink

    It has answered the question

    Originally posted by sehe
    actually not, see "Why does "ps -aux" complain about a bogus '-'?" at http://procps.sourceforge.net/faq.html
    Best Regards,
    Namesniper

  7. #7
    Join Date
    Jul 2004
    Posts
    73
    lynx http://localhost/server-status is nice for apache users

    I use MRTG for bandwidth, server usage etc. monitoring. Not command line, but a damn good way to monitor things.

    edit: ooh, also, apachetop

  8. #8
    Join Date
    Mar 2004
    Posts
    1,005
    Not sure if linsk is different from linx but for only that one works
    links http://localhost/server-status

    Originally posted by _rse
    lynx http://localhost/server-status is nice for apache users

    I use MRTG for bandwidth, server usage etc. monitoring. Not command line, but a damn good way to monitor things.

    edit: ooh, also, apachetop
    Best Regards,
    Namesniper

  9. #9
    Join Date
    Apr 2005
    Location
    Sweden
    Posts
    241
    "atop" is good for monitoring CPU, memory and net/disk i/o.

  10. #10
    Join Date
    Jun 2003
    Posts
    961
    Originally posted by The_Overl
    "atop" is good for monitoring CPU, memory and net/disk i/o.
    nice one, url is http://www.atcomputing.nl/Tools/atop
    The_Overl, you tried the kernel patches?

  11. #11
    Join Date
    Apr 2005
    Location
    Sweden
    Posts
    241
    No, havent.. I just apt-get the whole thing and thats it. Very useful though, specially for disk i/o since you get a nice % value

    I usually use a interval of 8 seconds instead of 10, because then the kb values for network i/o corresponds directly to the kbit/s used by the interface, so no extra computation needs to be done there to see how busy the network layer is.

  12. #12
    Join Date
    Mar 2004
    Posts
    1,005
    Nice tool

    Originally posted by The_Overl
    No, havent.. I just apt-get the whole thing and thats it. Very useful though, specially for disk i/o since you get a nice % value

    I usually use a interval of 8 seconds instead of 10, because then the kb values for network i/o corresponds directly to the kbit/s used by the interface, so no extra computation needs to be done there to see how busy the network layer is.
    Best Regards,
    Namesniper

  13. #13
    Join Date
    Dec 2004
    Location
    Canada
    Posts
    1,082

  14. #14
    Join Date
    Mar 2004
    Posts
    1,005
    I will try it.

    By the way do you offer server management services ?

    Originally posted by error404
    I like htop as a top utility.
    Best Regards,
    Namesniper

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •