Running "top" on a System with Multiple Virtual Machines

Discussion in 'Server Operation' started by darinpeterson, Jan 29, 2013.

  1. darinpeterson

    darinpeterson Member

    Is it normal when running "top" from the command line to see the processes on ALL virtual servers?

    The reason I ask is that I have multiple services of mysqld as well as other services that appear when running top.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    If you are referring to the host system and are using OpenVZ/Virtuozzo or any other container virtualization technique (like LXC), then yes.
     
  3. darinpeterson

    darinpeterson Member

    Thanks Falko...

    On my base system I have installed 5 virtual containers on Squeeze using OpenVZ. One my web container I have nearly completed the installation of the web container.

    For some reason there are 5 apache2 processes running under top. When killing them, they respawn. Do you believe there is a problem with this virtual container? Should there be 5 apache2 processes running?

    I used the howto document here to install the web container: http://www.howtoforge.com/multiserv...se-servers-on-debian-squeeze-with-ispconfig-3

    Thank you for your time!
    Darin
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Please check the apache configuration (/etc/apache2/apache2.conf) - especially the StartServers, MinSpareServers, and MaxSpareServers settings.
     
  5. darinpeterson

    darinpeterson Member

    Hi Falko, Here are the lines from my web server that runs under OpenVZ:
    <IfModule mpm_prefork_module>
    StartServers 5
    MinSpareServers 5
    MaxSpareServers 10
    MaxClients 150
    MaxRequestsPerChild 0
    </IfModule>

    I believe there is going to be a similar problem with mysqld when I'm finished configuring the server...

    Darin
     

Share This Page