1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

What is the minimum free RAM to be maintained

Discussion in 'Apache' started by myilraj, Oct 4, 2017.

  1. #1
    Hello Friends,

    I have been using VPS hosting with 6Core - 6GB RAM.
    Hosted only one website (Custom made PHP).
    Its daily average unique visitors was nearly 5500.
    When I check the ram every time, only 100mb - 300mb free available.
    But the server load average was nominal and below 0.3 (1min avg load)

    I need some of your experts advice because Google Analytics shows reduce page load time. But GTMetrix, Pingdom test results in 2.1s and thinkwithgoogle.com test shows 3s (Excellent).

    I am so much confused on this.
     
    myilraj, Oct 4, 2017 IP
  2. phpmillion

    phpmillion Member

    Messages:
    145
    Likes Received:
    11
    Best Answers:
    4
    Trophy Points:
    45
    #2
    Before we start - is 6 GB of memory is dedicated to you and you only? I mean, many VPS providers advertise their services misleading clients. For example, they advertise 6 GB of memory, but "forget" to mention that this memory is shared with other VPS clients on the same server. Hence, you actually get less RAM than you think.

    If you actually get 6 GB and not much free memory is available, there's nothing to worry about as long as your websites load fast. Actually, it's even better - it means most of your server's data is stored in RAM instead of HDD, which is a huge benefit, since RAM is much, much faster. I just checked one of my dedicated servers with 8 GB of memory and only 500 MB is free. However, all websites (100+ of them) load blazing-fast.
     
    phpmillion, Oct 4, 2017 IP
  3. myilraj

    myilraj Member

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #3
    Thanks for your reply! How can I come to know that 6GB RAM is dedicated for me only?
    I connected through SSH and found 6GB RAM is available. (Even tested through WHM also).

    If you actually get 6 GB and not much free memory is available, there's nothing to worry
    Then, why Google says work to improve page loading time?
    The maximum request per page is 48
    The maximum page size is 946kb
    I don't know where to find the root issue?
     
    myilraj, Oct 4, 2017 IP
  4. phpmillion

    phpmillion Member

    Messages:
    145
    Likes Received:
    11
    Best Answers:
    4
    Trophy Points:
    45
    #4
    The easiest way is to ask your hosting provider if memory is 100% dedicated or shared.

    If you have page speed issues, I'm 99% sure it's not related to RAM. Most likely it's related to the number of requests. I checked one of the most complex sites of mine, and it only has 27 requests.
     
    phpmillion, Oct 5, 2017 IP
  5. stardust.x7

    stardust.x7 Active Member

    Messages:
    369
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    90
    #5
    How much free RAM is required, it depends on the CACHING facilities you have on your server right now. You may improve your firstbyte with Memcache, Varnish, OPCache Or, XCache.
     
    stardust.x7, Oct 7, 2017 IP
  6. myilraj

    myilraj Member

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #6
    Sir, actually I am asking what is the minimum ram to be maintained for a site hosted on a VPS environment?
     
    myilraj, Oct 8, 2017 IP
  7. stardust.x7

    stardust.x7 Active Member

    Messages:
    369
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    90
    #7
    At least 50% free Ram should be maintained for stable performance and OOM error under high i/o.
     
    stardust.x7, Oct 8, 2017 IP
  8. hostechsupport

    hostechsupport Well-Known Member

    Messages:
    413
    Likes Received:
    23
    Best Answers:
    7
    Trophy Points:
    138
    #8
    myilraj,
    >> It depends on your usage, so there's no clear answer. Most of the RAM portion is also used by system processes, But Practical scenarios suggest that there should be at least 25-30% of RAM available free.
     
    hostechsupport, Oct 26, 2017 IP
  9. postcd

    postcd Well-Known Member

    Messages:
    1,037
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    190
    #9
    I do not know your site, but 6GB RAM is very much. Normal website should require just 256MB RAM !! If it has large database of 500MB, then maybe 1.5GB RAM should fit quite OK.
    I think RAM is not your problem with regards to Google analytics advice to reduce page load time.
    Your main problem is probably huge content management ystem equiped by many addon modules which increasing load time. Also the page size of almost 1MB can be quite alot, you may consider webpagetest.org it will advice you changes, maybe optimize images. But i think main step to reduce load time wqould be to decrease number of elements your website is loading. By element i mean images, css, js, or somehow combine them.

    I would google: how to reduce page load time + enter your CMS content management system anme for more targetted results, or ask at your CMS forums.
     
    postcd, Dec 12, 2017 IP
  10. Absolute.Hosting

    Absolute.Hosting Member

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #10
    Hi,

    Quick answer is as much as possible ;)

    But for ex if you have 6GB and only 300MB free it isn't necessarily anything to worry about. To get a better idea of performance check Disk I/O and CPU usage also, load averages.

    Assuming you're using Linux check out these threads, it may help fine tuning.

    https://lonesysadmin.net/2013/12/22/better-linux-disk-caching-performance-vm-dirty_ratio/
    https://stackoverflow.com/questions...-vm-dirty-ratio-and-vm-dirty-background-ratio

    But don't get too happy changing system settings :D
     
    Absolute.Hosting, Dec 18, 2017 IP