Saturday, December 5, 2015

webmin / Virtualmin memory usage

http://www.webhostingtalk.com/showthread.php?t=883075


  1.  
    juga is offlineNewbie
    Join Date
    Aug 2009
    Posts
    8

    webmin / Virtualmin memory usage

    Hi,

    I have the following programs running on my server:
    Ubuntu Linux 8.04.2
    Apache version 2.2.8
    BIND version 9.4.2
    Webmin version 1.480
    Virtualmin version 3.72.gpl GPL
    Postfix version 2.5.1
    Dovecot IMAP/POP3 Server Version 1.0.10
    ProFTPd version 1.31
    MySQL version 5.0.51
    OpenSSH_4.7

    This is a brand new website with very little traffic. However, the server seems to be using a lot of memory

    Real memory: 495.43 MB total / 182.41 MB free Swap space: 0 bytes total / 0 bytes free

    Is this normal or is there something wrong? Does it really need about 380MB just to have a basic website up and running?

    Thanks for your help.
  2. #2
    Jacob Wall is offlineThink big, and discover! :)
    Join Date
    Sep 2008
    Location
    Boulder, CO
    Posts
    4,544
    It's caching some of the RAM. Can you give us the output of "free -m" please.
    Jacob Wall
  3. #3
    UNIXy is offlineWarp Speed!
    Join Date
    Feb 2008
    Location
    Houston, Texas, USA
    Posts
    2,886
    Your apache build probably has a lot of modules compiled in / loaded that eat up all the memory. Can you post the output of these commands:

    httpd -l
    httpd -V
    Regards
    UNIXy - Fully Managed Servers and Clusters - Established in 2006
    cPanel Varnish Nginx Plugin ] - Enhance LiteSpeed and Apache Performance
    www.unixy.net - Los Angeles | Houston | Atlanta | Rotterdam
    Love to help pro bono (time permitting). joe > unixy.net
  4. #4
     
    juga is offlineNewbie
    Join Date
    Aug 2009
    Posts
    8
    Here are the responses:

    free -m

    total used free shared buffers cached
    Mem: 495 414 80 0 13 93
    -/+ buffers/cache: 307 188
    Swap: 0 0 0
    When I tried httpd -l or httpd -v I got the following error message:
    -bash: httpd: command not found
    Thanks for your help
  5. #5
    UNIXy is offlineWarp Speed!
    Join Date
    Feb 2008
    Location
    Houston, Texas, USA
    Posts
    2,886
    The good news is the RAM is not being used up. It's cached and is ready to be consumed if needed (see buffers/cache).

    Regards
    UNIXy - Fully Managed Servers and Clusters - Established in 2006
    cPanel Varnish Nginx Plugin ] - Enhance LiteSpeed and Apache Performance
    www.unixy.net - Los Angeles | Houston | Atlanta | Rotterdam
    Love to help pro bono (time permitting). joe > unixy.net
  6. #6
     
    juga is offlineNewbie
    Join Date
    Aug 2009
    Posts
    8
    So the server is not actually using 307MB memory? What is the actual memory being used?
  7. #7
    Jacob Wall is offlineThink big, and discover! :)
    Join Date
    Sep 2008
    Location
    Boulder, CO
    Posts
    4,544
    It's using 309Mb of ram.
    Jacob Wall
  8. #8
    CompleteKontrol is offlineNewbie
    Join Date
    Apr 2009
    Posts
    8
    You may want to consider setting up a swap space, with such a small amount of ram to work with a swap partition may boost your performance.
  9. #9
    team-vps is offlineJunior Guru Wannabe
    Join Date
    May 2009
    Location
    Kansas City
    Posts
    62
    Are you sure you have a dedicated server? It looks like you don't have swap space which is strange not to have in a dedicated server, but common in an OpenVZ VPS.
  10. #10
     
    juga is offlineNewbie
    Join Date
    Aug 2009
    Posts
    8
    I sure am paying for a dedicated server.
    Thanks for pointing out about the zero swap space. I talked to my host and have set up 4GB swap space.

    However, I still have the question - is it normal to have about 309MB used up on your server if all you have is the following systems running on your server?
    Ubuntu Linux 8.04.2
    Apache version 2.2.8
    BIND version 9.4.2
    Webmin version 1.480
    Virtualmin version 3.72.gpl GPL
    Postfix version 2.5.1
    Dovecot IMAP/POP3 Server Version 1.0.10
    ProFTPd version 1.31
    MySQL version 5.0.51
    OpenSSH_4.7
  11. #11
     
    bsh is offlineWeb Hosting Evangelist
    Join Date
    Feb 2007
    Location
    NY Metro
    Posts
    544
    Post the output of 'top' and that may help others assist you.
    ▌ Brandon Hale | bhale@fortressitx.com | 888.500.0774
  12. #12
     
    mugo is offlineIntangible Asset Appraiser
    Join Date
    Mar 2009
    Location
    Austin Tx
    Posts
    1,990
    Just for reference, i have two matching server, one running CentOS w/ Virtualmin/Webmin, the other just a base CentOS install with straight html, stopping all activity, I get -

    Without Virtualmin - 263M used
    With Virtualmin - 303M used

    So an extra 40M.
    This is the best signature in the world....Tribute!
    (It is not the best signature in the world, no. This is just a tribute)
  13. #13
     
    net is offlineCommunity Liaison
    Join Date
    Mar 2003
    Posts
    13,892
    Moved > Technical & Security Issues.
    .
    JoneSolutions.Com is on the net providing web hosting services and support 24/7 since 2001.
    .
  14. #14
    cybersquate is offlineJunior Guru Wannabe
    Join Date
    Aug 2008
    Posts
    44
    sory for bump,
    @OP
    is it any way for make it more safe RAM?

    Here is Mine,

    [root@serversz /]# httpd -l
    Compiled in modules:
    core.c
    prefork.c
    http_core.c
    mod_so.c
    [root@serversz /]# httpd -V
    Server version: Apache/2.2.3
    Server built: Jul 14 2009 06:02:39
    Server's Module Magic Number: 20051115:3
    Server loaded: APR 1.2.7, APR-Util 1.2.7
    Compiled using: APR 1.2.7, APR-Util 1.2.7
    Architecture: 64-bit
    Server MPM: Prefork
    threaded: no
    forked: yes (variable process count)
    Server compiled with....
    -D APACHE_MPM_DIR="server/mpm/prefork"
    -D APR_HAS_SENDFILE
    -D APR_HAS_MMAP
    -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
    -D APR_USE_SYSVSEM_SERIALIZE
    -D APR_USE_PTHREAD_SERIALIZE
    -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
    -D APR_HAS_OTHER_CHILD
    -D AP_HAVE_RELIABLE_PIPED_LOGS
    -D DYNAMIC_MODULE_LIMIT=128
    -D HTTPD_ROOT="/etc/httpd"
    -D SUEXEC_BIN="/usr/sbin/suexec"
    -D DEFAULT_PIDLOG="logs/httpd.pid"
    -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
    -D DEFAULT_LOCKFILE="logs/accept.lock"
    -D DEFAULT_ERRORLOG="logs/error_log"
    -D AP_TYPES_CONFIG_FILE="conf/mime.types"
    -D SERVER_CONFIG_FILE="conf/httpd.conf"
    Last edited by cybersquate; 09-22-2009 at 05:33 PMReason: x