My vps has a lot of ram usage

August 17, 2017 286 views
Apache Ubuntu 16.04

Hi! I installed vestacp in a 10$ drolplet 1cpu/1gb.

The ram usage is 700Mb always.

Sometimes the wordpress give me http 500 when i try to enter in dashboard.

0 visitors in the website.

Someone can help me? Thx!

I checked the ram with "top" in console and....

If i enter to my website the ram usage goes from 640mb to 750mb :S

Its weird. In "top" all hte process are with 0 ram usage and suddenly mysql takes 30% (how its possible if no ones its in the website)

I have 10 websites with 0 visitors in the vps.

The vps installation is fresh from 16/08/2016

But the ram used is always more than 640mb

9 Answers

Wordpress does this, it's quite a heavy CMS in which it requires allot of memory.
Wordpress could be doing automated things from plugins you've installed, themes, etc. (Specially plugins).

Wordpress heavy cms? a lot of ram? with 0 visitors? this is real?

I desactivated all the plugins and the ram used its the same

I had the same in toher vps with 1gb and the used ram was ... not more than 30%..., then wordpress its not the problem.

  • You said 10 websites, if all of them are on wordpress then you should expect that amount of ram usage even when php isn't serving requests. PHP usually holds this.

Now its using 850mb ... i dont now why its increasing and increasing :S it will crash

850mb across 10 websites only averages about ~85mb memory usage per site. If they are all serving dynamic content via content management systems that is fairly reasonable usage.

Perhaps you should look at increasing the memory available if you're planning on hosting that many sites on one VPS? Personally I would limit the amount of sites per droplet and just create more droplets rather than run them all from one.

Really guys, i dont know your experiencie. Thx for your help. But i had a vps 1gb with 8 websites and never crash.

Now i deleted 5 websites then i have 5 websites and... MAGIC the ram usage is the same 700mb.

What now

Something interesting, when i delete 1 website from vestacp.

"Error: nginx restart failed" And the ram usage goes down to 400mb but fast start to increase to 700mb

I bealive nginx is going bad.

I did it this: i create de droplet, i installed vestacp and i installed certbot (letsencrypt) for nginx+ubuntu

Why when i delete a website the ram goes down to 400mb and after start to increase to 700mb

I am looking this by ssh "top" command

News

Now i have 2gb of ram. The same story xD

250000 ram free 796000 used and !! 971900 buff/cache

I restart apache2

670000 ram free 430000 used and !! 920000 buff/cache

Its normal a lot of buff/cache ?

Note: after restart apache ramused goes from 430000 to 750000

I use a $5 droplet and have about 60 accounts all with Wordpress, no issues at all.

Maybe VestaCP uses alot of RAM?

  • Yes i think so, because vesta has email service.

    What are you using?

    • I use Zoho Mail, I setup a free Zoho Mail account for each of my clients. Its similar to Google Mail but its free.

and for install wordpress, do you use serverpilot? or something like this? do you have letsencrypt as well?

  • I do, serverpilot.io is a fantastic company with the best support I have ever encountered.

Have another answer? Share your knowledge.