Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


What's your average RAM usage for Nginx, PHP, MySQL?
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

What's your average RAM usage for Nginx, PHP, MySQL?

curiosuscuriosus Member
edited October 2012 in General

A fresh install gives me around 60MB.
I was wondering if this is good enough or is there still room for trimming?
What's your average?

Comments

  • I'm using around 80MB with apache, php, mysql, postfix & dovecot mail server configured to use low ram.

    But keep in mind, the less resources you limit yourself to the more likely it is that your server will be slower for the users.

    Thanked by 1ErawanArifNugroho
  • nunimnunim Member
    edited October 2012

    From my blog site running nginx, php, mysql & openstatus

    root@xen:~# uptime
     21:41:07 up 44 days, 14:58,  1 user,  load average: 0.06, 0.02, 0.00
    root@xen:~# free -m
                 total       used       free     shared    buffers     cached
    Mem:            89         87          2          0         11         50
    -/+ buffers/cache:         25         64
    Swap:          255         12        243
    
  • budingyunbudingyun Member
    edited October 2012

    CentOS 6.3 32 bit + nginx + php-fpm + varnish + mariadb use about 60MB-80MB on KVM vps.

    [root@vps001 ~]# free -m
                 total       used       free     shared    buffers     cached
    Mem:           499        484         14          0        139        259
    -/+ buffers/cache:         85        414
    Swap:         1023          7       1016
    

    It's a little higher right now. :p

  • arieonlinearieonline Member
    edited October 2012

    Centos 5.8 + nginx + php-fpm + mysql + webmin + sendmail + snmpd + fail2ban

    [root@vps1 ~]# free -m
                 total       used       free     shared    buffers     cached
    Mem:           512        138        373          0          0          0
    -/+ buffers/cache:        138        373
    Swap:            0          0          0
    

    running 2 wordpress website

  • asakazaasakaza Member
    edited October 2012

    [root@lualua~]# free -m total used free shared buffers cached Mem: 1005 981 24 0 56 729 -/+ buffers/cache: 195 810 Swap: 2015 8 2007

    Nginx+php-fpm+mysql+vsftpd, centos 6.3 64bit KVM
    Running xenforo, about 100 users online

  • 60MB fresh install with nginx, php, mysql seems fine.

    I'm running nginx + php5-fpm + mysql + postfix + courier-imap-ssl + fail2ban + dropbear on Debian 6 32-bit

                 total       used       free     shared    buffers     cached
    Mem:           493        103        389          0          0          0
    -/+ buffers/cache:        103        389
    Swap:            0          0          0

    Hosts two low traffic blogs and one low-medium traffic SMF forum

  • Mine is at 32MB. I'm using minstall for it.

    How about the CPU usage?

  • Running freevps.us:

    [root@italy2 ~]# ps_mem.py
     Private  +   Shared  =  RAM used       Program 
    
     84.0 KiB +   8.5 KiB =  92.5 KiB       acpid
    280.0 KiB +  24.5 KiB = 304.5 KiB       init [updated]
    336.0 KiB +  12.0 KiB = 348.0 KiB       udevd
    336.0 KiB +  45.0 KiB = 381.0 KiB       mingetty (6)
    208.0 KiB + 281.0 KiB = 489.0 KiB       mysqld_safe
    656.0 KiB +  87.5 KiB = 743.5 KiB       crond
    684.0 KiB + 115.0 KiB = 799.0 KiB       exim
    636.0 KiB + 305.0 KiB = 941.0 KiB       bash
    776.0 KiB + 184.0 KiB = 960.0 KiB       syslog-ng (2)
      2.5 MiB + 124.0 KiB =   2.6 MiB       scrd
      2.2 MiB + 590.0 KiB =   2.7 MiB       sshd (2)
      2.9 MiB +   1.1 MiB =   4.1 MiB       nginx (2)
      7.7 MiB +   7.7 MiB =  15.3 MiB       php-fpm (3)
     48.6 MiB + 297.0 KiB =  48.9 MiB       mysqld
    ---------------------------------
                             78.7 MiB
    =================================
    
     Private  +   Shared  =  RAM used       Program 
    
    [root@italy2 ~]# free -m
                 total       used       free     shared    buffers     cached
    Mem:           243        234          9          0          8        140
    -/+ buffers/cache:         85        158
    Swap:         1023          0       1023
  • edited October 2012

    This is one of my KVM SSD from Prometeus, but it's eating many memory because I don't know how to tweak it yet :p

    top - 13:00:13 up 3 days, 18:00,  0 users,  load average: 0.00, 0.00, 0.00
    Tasks:  70 total,   1 running,  69 sleeping,   0 stopped,   0 zombie
    Cpu(s):  0.2%us,  0.0%sy,  0.0%ni, 99.8%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Mem:    514656k total,   480240k used,    34416k free,    57860k buffers
    Swap:  1078264k total,     1596k used,  1076668k free,   376724k cached
    
    

    It's running my blog with Nginx + Php-fpm + varnish + MySQL + OpenVPN.
    More info

  • daviddavid Member
    edited October 2012

    I've got nginx, mysql, and php-fpm with 8 child processes running (plus other usual stuff that doesn't consume too much memory). And xcache with about 30M used.

    After hitting the websites to fill up xcache, I'm using about 260M:

    # free -m
                 total       used       free     shared    buffers     cached
    Mem:           489        450         39          0         59        130
    -/+ buffers/cache:        260        228
    Swap:         1023          0       1023

    This is CentOS 6.3 64 bit on a 512MB Xen-PV VPS.

  • ErawanArifNugroho to much resources for varnish and mysql
    blog and vpn only ?

  • @ErawanArifNugroho said: This is one of my KVM SSD from Prometeus, but it's eating many memory because I don't know how to tweak it yet :p
    top - 13:00:13 up 3 days, 18:00, 0 users, load average: 0.00, 0.00, 0.00

    Tasks: 70 total, 1 running, 69 sleeping, 0 stopped, 0 zombie
    Cpu(s): 0.2%us, 0.0%sy, 0.0%ni, 99.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
    Mem: 514656k total, 480240k used, 34416k free, 57860k buffers
    Swap: 1078264k total, 1596k used, 1076668k free, 376724k cached

    Why not grab info from htop or free -m? From top, afaik it's including cache.

  • With 52 active php/myql sites:

    [root@serv:~] free -m
                 total       used       free     shared    buffers     cached
    Mem:           496        476         20          0         49        332
    -/+ buffers/cache:         93        402
    Swap:          255          0        255
    
    [root@serv:~] uptime
     08:34:53 up 47 days, 14:41,  1 user,  load average: 0.00, 0.01, 0.05
     
    [root@serv:~] pstree
    init-+-cron
         |-dbus-daemon
         |-exim4
         |-mingetty
         |-mysqld_safe-+-logger
         |             `-mysqld---8*[{mysqld}]
         |-nginx---2*[nginx]
         |-php5-fpm---php5-fpm
         |-rsyslogd---3*[{rsyslogd}]
         |-sshd---sshd---bash---pstree
         `-udevd---2*[udevd]
    
  • Nginx + php-fpm + mysqld + memcached + munin at 75mb.

    root@blusmurf ~# free -m
    total used free shared buffers cached
    Mem: 1024 122 901 0 0 46
    -/+ buffers/cache: 75 948
    Swap: 1024 0 1024
    root@blusmurf ~#

  • @nocom said: ErawanArifNugroho to much resources for varnish and mysql

    Yes. Should a 384mb of OpenVZ enough for it?

  • @budingyun said: Why not grab info from htop or free -m? From top, afaik it's including cache.

    Hehe.. If from htop, it will only shows 60MB

  • openvz light php mysql cache monitoring and others

    wordpres+12 others php/msql
    mysql about 100mb
    628,497 URLs submitted
    127,177 URLs indexed

  • You can view it live for my webcluster: http://vps11.sparklingclouds.nl/status/stat.php

    However, lighttpd, not nginx.

    Thanked by 1TheHackBox
  • @Raymii: could you please give me some hint on how to make a site like yours? Is there any script out there I can use? Thanks

  • OS: CentOS 6.3
    Setup: Nginx, PHP-FPM, MySQL
    Virtualization: KVM
    Provider: Carstenz Pyramid Server
    What's hosted: Wordpress blog with plugins and PMA.

    [root@serial ~]# free -m total used free shared buffers cached Mem: 242 141 100 0 20 95 -/+ buffers/cache: 26 216 Swap: 510 0 509

  • @CoolMoon the page I linked to is a dev version of this script:

    http://raymii.org/cms/p_Bash_PHP_Server_Status_Monitor

    I'm in the last testing phases for the next version which adds history and better checking and a lot more. You might want to wait, or just check the current public version out.

  • heiskaheiska Member
    edited October 2012

    LEMP on Xen running Debian 6.
    free -m total used free shared buffers cached Mem: 501 172 328 0 13 113 -/+ buffers/cache: 45 455 Swap: 63 0 63

  • curiosuscuriosus Member
    edited October 2012

    @nocom said: openvz light php mysql cache monitoring and others

    wordpres+12 others php/msql
    mysql about 100mb
    628,497 URLs submitted
    127,177 URLs indexed

    23MB? For real?
    I just started to run a Wordpress site. Now I'm using 100MB.
    How do you do you it?

  • Hosting over 400 databases with at least 1,000 connections at any given time on a single server ends up using over 16Gb of RAM.

  • @CoolMoon I just released version 2 of Ray-mon, with all the nice new features: https://raymii.org/cms/p_Bash_PHP_Server_Status_Monitor

Sign In or Register to comment.