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 Debian/Ubuntu
  • Search

Higher memory usage after updating to Vesta 0.9.8-17

Debian/Ubuntu related topics
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
prxbl
Posts: 17
Joined: Fri Aug 14, 2015 5:28 pm

Higher memory usage after updating to Vesta 0.9.8-17
  • Quote

Post by prxbl » Mon Jan 02, 2017 3:16 pm

Hi,
I am running Ubuntu 14.04 and recently updated from Vesta 0.9.8.16 to 0.9.8-17 and noticed an increase in memory usage. Here is graph, around 20:00 is when the update was installed and through the night memory usage was higher than the usual. Around 14:00 there is a drop, I did a reboot on the server thinking this would solve the problem, but it didn't as memory usage seems to be slowly going up again.
Image
I also have htop installed on the server and it seems to be showing a different story:
Image
A quick check with simple top gives a figure of around 700MB of memory used which is similar to what vestacp graph is showing:
Image
I also checked with free -m command, the usage seems to be real:
Image
How can I find out what went wrong after the update and fix this memory usage problem?

Thank you for your help!
Top

drsdre
Posts: 12
Joined: Fri May 08, 2015 8:49 am

Re: Higher memory usage after updating to Vesta 0.9.8-17
  • Quote

Post by drsdre » Wed Jan 04, 2017 2:37 pm

You should have a look which process take most of the memory. For example use the following command to see how much MB each process uses:

Code: Select all

ps -eo size,pid,user,command --sort -size | awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }'
Top

prxbl
Posts: 17
Joined: Fri Aug 14, 2015 5:28 pm

Re: Higher memory usage after updating to Vesta 0.9.8-17
  • Quote

Post by prxbl » Thu Jan 05, 2017 12:44 pm

It looks like top 3 processes are these:
841.20 Mb /usr/sbin/mysqld
615.01 Mb /usr/bin/python /usr/bin/fail2ban-server -b -s /var/run/fail2ban
216.85 Mb rsyslogd

I also did some reading on ubuntu memory usage in general and the advice was to look at the -/+ buffers/cache: section from free -m command:
-/+ buffers/cache: used 384 free 609

Because the system is using ram to cache files so the memory appears as used but is in fact available for processes. That might explain why htop shows different numbers. It doesn't explain why there is a sudden change in the graphs though..
The system has a total of 1GB ram so it's not clear to me how the top 3 processes total over 1GB of memory usage.
Top

rlasmar
Posts: 7
Joined: Fri Oct 07, 2016 3:46 pm

Re: Higher memory usage after updating to Vesta 0.9.8-17
  • Quote

Post by rlasmar » Sun Jan 15, 2017 7:14 pm

Same problem here, but I saw another topic that its a bug from latest vesta update and should ignore until they fixed. The real memory usage is like you said: -/+ buffers/cache: used 384 free 609

"free -h" will show the real usage.

But until they fixed, It will be nice if someone knows a solution to fix this. In what file we must edit to fix this
Top

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

Re: Higher memory usage after updating to Vesta 0.9.8-17
  • Quote

Post by skurudo » Mon Jan 16, 2017 8:31 am

skid wrote:Unfortunately there is a bug in current version. New memory function ignores available cached/buffered memory. I can assure you that the real memory consumption on your server hasn't changed since release. Bugfix will be available soon.

Old method:

Code: Select all

[root@r6 ~]# free -m |awk '{print $4}'|head -n3 |tail -n1
404
New method:

Code: Select all

[root@r6 ~]# free -m |grep Mem |awk '{print $4}'
98
viewtopic.php?f=10&t=4590&start=10#p53313
Top

rlasmar
Posts: 7
Joined: Fri Oct 07, 2016 3:46 pm

Re: Higher memory usage after updating to Vesta 0.9.8-17
  • Quote

Post by rlasmar » Mon Jan 16, 2017 5:14 pm

Its just paste this code?

Or it must edited in some file?
skurudo wrote:
skid wrote:Unfortunately there is a bug in current version. New memory function ignores available cached/buffered memory. I can assure you that the real memory consumption on your server hasn't changed since release. Bugfix will be available soon.

Old method:

Code: Select all

[root@r6 ~]# free -m |awk '{print $4}'|head -n3 |tail -n1
404
New method:

Code: Select all

[root@r6 ~]# free -m |grep Mem |awk '{print $4}'
98
viewtopic.php?f=10&t=4590&start=10#p53313
Top

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

Re: Higher memory usage after updating to Vesta 0.9.8-17
  • Quote

Post by skurudo » Tue Jan 17, 2017 4:47 am

rlasmar wrote:Its just paste this code?
Or it must edited in some file?
It's not a fix, it's explanation why is that.
It'll be fixed with new version.
Top


Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “Debian/Ubuntu”



  • 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