Page 1 of 1

How much RAM my website uses each day

Posted: Thu Jul 05, 2018 5:03 pm
by Ironside
If I go into my cPanel I can see what bandwidth my website is using each day and month. However, I'm trying to work out how I can find out how much RAM my website uses each day. The reason I ask is because I'm contemplating moving servers and the package I am looking at the VPS. However, I'm limited to 2 GB a day, any higher you start paying for it. So trying to figure out if my website will sit comfortably within this package and not cause any problems.

Re: How much RAM my website uses each day

Posted: Thu Jul 05, 2018 5:43 pm
by leolam
Do you have Shell access to your current server? If so I can post you a couple of commands to check usage of Database/Disk/GB/etc

Leo 8)

Re: How much RAM my website uses each day

Posted: Thu Jul 05, 2018 6:15 pm
by Ironside
If I look in my cPanel under security that I've got something called SSH shell access

Re: How much RAM my website uses each day

Posted: Thu Jul 05, 2018 8:43 pm
by sozzled
I think there are two issues here: bandwidth and memory (or RAM).

Bandwidth usage is not a resource: it's consumed (like air is consumed when you breathe). Bandwidth consumed can be measured and average use, say for one day, can be calculated. Where a webhosting provider states that the average bandwidth consumption is limited to 2 Gb per day (on average), we can monitor that usage over, say, one month (divide the number by how many days in the month) to arrive at an average daily usage. That's easy. Basically, if the webhosting provider states "average daily bandwidth consumption is 2 Gb per day or less", this is saying that, over a month, if the total bandwidth consumed by the network exceeds 60 Gb then you pay extra.

Bandwidth limitations differ between various webhosting providers and the hosting packages they offer to their customers. Some webhosting providers offer unlimted bandwidth usage under their hosting schemes.

Memory is a finite resource. Memory is used/"consumed" but memory usage fluctuates. Memory usage is rather amorphous, meaningless. Provisioning of a sufficiency of memory is a key element affecting overall system performance.

It's somewhat hypothetical to discuss calculating "average daily" memory usage (e.g. summing the memory used at discrete moments of time over a long period and then divide that by the number of points used in collecting that information). Basically, there are times when the processor is doing something, there are times when the processor is exceptionally busy but, most of the time, the processor is idle. Sometimes memory is freed when the processor is not so busy and sometimes it's not. Memory is faulted, paged, cached as, an when, the operating system requires and decides.

If the webhosting provider provides 2 Gb RAM, then it means that's the maximum amount available. It's not a question about whether a customer "uses" more than the maximum available RAM; it's a question about whether the processor struggles to perform within the amount of memory available. If performance suffers as a consequence of an insufficiency of memory then more memory may be required. 2 Gb of memory is a lot of memory.