Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Sudden Sharp Increase in Memory Usage after 0.9.8-17 Upgrade

General questions about VestaCP
Post Reply
  • Print view
Advanced search
9 posts • Page 1 of 1
Syeef
Posts: 52
Joined: Tue May 03, 2016 11:35 pm

Sudden Sharp Increase in Memory Usage after 0.9.8-17 Upgrade
  • Quote

Post by Syeef » Wed May 17, 2017 2:21 am

Hello,
I didn't realize until now that my VPS is consuming an unusual amount of Memory! The Memory Usage sharply increased after the 0.9.8-17 Upgrade. Please see the Graph generated by VestaCP:

Image

According to the Graph, the Memory Usage increased Greatly and all of a Sudden at the end of November 2016, when Vesta 0.9.8-17 Upgrade was released if I am not mistaken. Besides upgrading to 0.9.8-17, I didn't do anything to the VPS... I didn't change any configuration, not atleast for a year. Even I am hosting the same number of personal sites I was hosting since taking the VPS.

My VPS crashed twice in the last couple of months, the first time it corrupted MySQL Server totally, please see here. My VPS NEVER crashed before, it all started recently... so what should I do? Should I be concerned?

VPS Specs:
OS: CentOS 6.9 x86_64
CPU: Intel Xeon L5639 @ 2.13GHz (8-cores)
RAM: 4GB
SSD: 90GB

Thanks.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Sudden Sharp Increase in Memory Usage after 0.9.8-17 Upgrade
  • Quote

Post by skurudo » Wed May 17, 2017 6:51 am

Try to tune your MySQL config first

viewtopic.php?f=14&t=14148
Top

Syeef
Posts: 52
Joined: Tue May 03, 2016 11:35 pm

Re: Sudden Sharp Increase in Memory Usage after 0.9.8-17 Upgrade
  • Quote

Post by Syeef » Wed May 17, 2017 8:28 am

skurudo wrote:Try to tune your MySQL config first

viewtopic.php?f=14&t=14148
Okay. I am following this. Will update the results in a few days :)
Top

Syeef
Posts: 52
Joined: Tue May 03, 2016 11:35 pm

Re: Sudden Sharp Increase in Memory Usage after 0.9.8-17 Upgrade
  • Quote

Post by Syeef » Fri May 19, 2017 11:41 pm

skurudo wrote:Try to tune your MySQL config first

viewtopic.php?f=14&t=14148
Yes, that MySQL Tuner script helped reduce a lot of memory usage. I will post the final results shortly after doing some more tests.

Also, is there any such Tuner script for HTTPD or NGINX? that would help optimize Memory Usage for my 4GB VPS?

Thanks.
Top

Syeef
Posts: 52
Joined: Tue May 03, 2016 11:35 pm

Re: Sudden Sharp Increase in Memory Usage after 0.9.8-17 Upgrade
  • Quote

Post by Syeef » Tue May 23, 2017 2:43 am

Nah, it's not helping... I thought Tuning MySQL seemed to be working at first, but after a day or so, it is back like before.

This is new graph from today:

Image

Memory Usage is still high!

I did a server reboot after each MySQL Tuning attempt, now I am thinking the server reboot was helping and not MySQL Tuning.

help! :'(
Top

Trentor
Posts: 84
Joined: Fri Apr 25, 2014 6:42 pm

Re: Sudden Sharp Increase in Memory Usage after 0.9.8-17 Upgrade
  • Quote

Post by Trentor » Tue May 23, 2017 2:09 pm

Syeef wrote:help! :'(
But, are you facing any problem for running out of memory?

The graph seems ok for me in a Linux server. Linux try to use all the memory using cache. Indeed, your server it's not swapping too much.

You have to find how your RAM it's used (Kernel + apps + cache + buffer).

For example, this is how the RAM is used in my server:

Image

As you can see, Linux is trying to use all my 2GB of RAM. But it's ok, I've never ran out of memory.

Take a look: Linux ate my RAM!
Top

Syeef
Posts: 52
Joined: Tue May 03, 2016 11:35 pm

Re: Sudden Sharp Increase in Memory Usage after 0.9.8-17 Upgrade
  • Quote

Post by Syeef » Tue May 23, 2017 5:54 pm

Trentor wrote: But, are you facing any problem for running out of memory?
Yes. My Server crashed 3 times recently, the last crash occurred 2 days ago when I thought Tuning MySQL was helping, but it wasn't actually helping.
Trentor wrote: The graph seems ok for me in a Linux server. Linux try to use all the memory using cache. Indeed, your server it's not swapping too much.
Please see the first graph I posted, problem only started immediately after 0.9.8-17 upgrade. before that there was no high Memory Usage atleast for over a year. Something changed after the upgrade :(
Top

Trentor
Posts: 84
Joined: Fri Apr 25, 2014 6:42 pm

Re: Sudden Sharp Increase in Memory Usage after 0.9.8-17 Upgrade
  • Quote

Post by Trentor » Tue May 23, 2017 6:13 pm

Syeef wrote:
Trentor wrote: But, are you facing any problem for running out of memory?
Yes. My Server crashed 3 times recently, the last crash occurred 2 days ago when I thought Tuning MySQL was helping, but it wasn't actually helping.
Trentor wrote: The graph seems ok for me in a Linux server. Linux try to use all the memory using cache. Indeed, your server it's not swapping too much.
Please see the first graph I posted, problem only started immediately after 0.9.8-17 upgrade. before that there was no high Memory Usage atleast for over a year. Something changed after the upgrade :(
Have you checked what is the highest RAM consumer in your server?

You can use, f.e., top or, better, htop.

Sort the processes for memory use and check wich one is guilty.

Edit: Your second graph of memory use it's perfectly fine.
Top

Syeef
Posts: 52
Joined: Tue May 03, 2016 11:35 pm

Re: Sudden Sharp Increase in Memory Usage after 0.9.8-17 Upgrade
  • Quote

Post by Syeef » Tue May 23, 2017 6:47 pm

Trentor wrote:Have you checked what is the highest RAM consumer in your server?
i checked under VestaCP [Server], and it seems normal like always.
Trentor wrote:You can use, f.e., top or, better, htop.
I also used top before posting here, but that was no help at all.

But i just installed htop... it is nice! thanks. Let me review using htop for few days and find out the "guilty" one.
Top


Post Reply
  • Print view

9 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password