High Ram usage
Hi all,
I need your help. Few days ago I received an email from my vps provider that they inform me the motherboard of the physical server had failed which caused the unavailability of the VPS. They have replaced the motherboard so the server went offline for 12 hours and the physical server come back online after 12 hours with no problem.
When I login my account few days after my physical server stay online, I have notice there are 140 processes are running on my VPS with 92% resources usage for the RAM, is that normal?
I'd find it strange, because when I shut it down and boot it back online, the RAM goes up to 1GB as 26% with 96 processes. I'd want to know why the RAM usage goes up between 2.98GB (72% resources usage) and 3.68GB (92% resources usage)?
I have not installed anything on the server as I have only installed cPanel and WHM software on the server. Is that normal for the resources usage to go high when I am running CentOS 7 64 bit with cPanel and WHM software?
Do you think if the high RAM usage are caused the hardware failure?
If that is not normal, then I need your help with that to find out why the RAM goes high and how I can reduce it to solve it. If you need to know what OS and hardware I have on my VPS, here it is:
150GB Hard drive
4GB Ram
OS: CentOS 7 64 bit
4 Core CPU Cores
4TB Bandwidth
However, I have contacted the VPS provider about why the server went offline for 12 hours and they said they had a hardware problem with the physical server. They suggested me to backup my data just in cause if the hard drive fails. Do you think if I should backup my data? if so how I can do that?
Any advice would be much appreciate.
Thanks in advance.
-
Hi @chris0147 It really depends on *what* is running to know if the usage is normal or not. We have a really helpful tutorial on troubleshooting high load that may be beneficial for you here: Tutorial - Troubleshooting high server loads on Linux servers Thanks! 0 -
Do you know why my memory are running too high? I am running 138 processes at the moment so I think something need to be looking at. 0 -
Hi @chris0147 Based on what you've shown nothing looks too out of the ordinary. Can you post the output of the following: free -m0 -
Hi @chris0147 Based on what you've shown nothing looks too out of the ordinary. Can you post the output of the following:
free -m
Sure, here it is the output:[root@server ~]# free -m total used free shared buff/cache available Mem: 4096 1120 546 2 2429 2858 Swap: 4096 0 4096 [root@server ~]#
Do you know why I have used alot of memory? If I dont use alot of memory, do you know what per cent that the memory is being used?0 -
Hi @chris0147 It doesn't looke like you are using a lot of memory based on this you have plenty of memory available. An amazingly good explanation of Linux's RAM usage can be found here: Help! Linux ate my RAM! Thanks! 0 -
Hi @chris0147 sar -r
Will show you %memory used but keep in mind that it also counts cached/buffered memory as being used. I usually look at the %commit to get a good idea of how much memory is actually in use.0 -
Hi @chris0147
sar -r
Will show you %memory used but keep in mind that it also counts cached/buffered memory as being used. I usually look at the %commit to get a good idea of how much memory is actually in use.
Oh right. I have put the "sar -r" in the comment and it show me the output for the memory as I can see at the %memused as most memory are used 73.88% but it say 0.0 at the %commit. What I find it strange is when I look at the server status on whm, it say that 29.56% memory are being used.0 -
So I don't have anything to worry about how much memory are being used? 0 -
What I find it strange is when I look at the server status on whm, it say that 29.56% memory are being used.
Keep in mind this is including cached memory though - while that memory is available it's reserved in anticipation of a process using it.So I don't have anything to worry about how much memory are being used?
No based on this information your memory usage is actually pretty low.0 -
Ok thank you very much. Problem are now solved. 0 -
Hi @chris0147 You're very welcome! I'll go ahead and mark this as resolved. Thanks! 0
Please sign in to leave a comment.
Comments
13 comments