Results 1 to 4 of 4

Thread: What's running on my server?

  1. #1
    Join Date
    Aug 2008
    Beans
    120

    What's running on my server?

    Hi, I'm running 10.04.1 server on my system... D510 pinetrail motherboard (dualcore) with 2Gb of ram. Low powered, runs at abot 60 watts, etc. I'm using it to host 3 websites, one of which is having fairly steady traffic, a citadel groupware server, which hosts about 12 email accounts, LAMP stack,, dns, and various other bits and pieces. I'm aware that using all this on one box is not advised, so that's not the issue.

    I'm wondering how I tell what trafic is going through my server at a given time, and what processes are being used? Just now I noticed lots of connection activity through our modem, and could hear various hard disk operations in our server... and no, I was not using it. I checked out busiest site, and no one was on it. No process currently would make sense to be generating this... no mailouts were being sent out, very few processes running, etc. And yet the top comand showed memory usage at 50%.

    So my question, what logs do I look at to preview what's happeningover the past 24 hours, and what logs can I look at 'as this happnes'? Cheers.

  2. #2
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: What's running on my server?

    Quote Originally Posted by clegends View Post
    I'm aware that using all this on one box is not advised, so that's not the issue.
    It's fine to do so. That's how Linux systems are designed - to successfully be running many services.

    Quote Originally Posted by clegends View Post
    I'm wondering how I tell what trafic is going through my server at a given time, and what processes are being used?
    Would something like Cacti do what you want?
    http://www.cacti.net/

  3. #3
    Join Date
    Apr 2008
    Location
    Far, far away
    Beans
    2,148
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: What's running on my server?

    The simplest tool for watching processes is htop. You can install it with,

    sudo apt-get install htop

    The netstat command is useful for quick checks of connections,

    sudo netstat -ntp
    or
    sudo netstat -lntp
    (which shows what services are listening on what ports)

    There are some other packages for monitoring traffic. eg. apachetop is apache top tool shows what connections apache is handling, and similarly for mytop for mysql connections.

    The iptraf package is pretty good for keeping an eye on net traffic too.

    There is a lot of other things out there and it just depends on what you need and the balance between logging/realtime and presentation.
    Send tips to: 17raXAGM42vZX21Vcb5HDwq2GMLmVwN4qd

  4. #4
    Join Date
    Sep 2011
    Beans
    1

    Re: What's running on my server?

    You might also try 'ps' if you happen to notice it happening again.

    for example:

    ps -C apache2 u

    That would show you Mem/CPU resource usage for any apache2 processes running on your server at that moment. It would also show you what user.

    you could also run

    ps -e u > file.txt

    then review the file. That would show you every process running. Maybe shed some light onto which process is using the resources.

Bookmarks

Posting Permissions

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