RAM usage of myVesta services

Post Reply
dpeca
Site Admin
Posts: 163
Joined: Fri Jun 19, 2020 9:59 am
RAM usage of myVesta services

Post by dpeca »

Let's say we have VPS with 2GB RAM.

Code: Select all

[email protected]:~# free -h
              total        used        free      shared  buff/cache   available
Mem:          1.9Gi       329Mi       944Mi        21Mi       673Mi       1.4Gi
So, we see here 2GB RAM

First, in order to measure myVesta RAM usage, we turned off system nginx and system php-fpm, so they are not in RAM.

Now let's see myvesta-nginx percent of RAM usages:

Code: Select all

[email protected]:~# ps aux | awk '{print $2, $4, $11}' | sort -k2rn | grep nginx
693 0.0 nginx:
695 0.0 nginx:
Both processes are under 0.1% of RAM, so in worst scenario it uses 4 MB of RAM, and probably less.

Now let's see myvesta-php-fpm percent of RAM usages:

Code: Select all

[email protected]:~# ps aux | awk '{print $2, $4, $11}' | sort -k2rn | grep fpm
705 0.4 php-fpm:
706 0.4 php-fpm:
703 0.2 php-fpm:
Sum is 1%, which is 20 MB of RAM.

So, there is very little overhead.

Anyway, you can turn-off both myvesta-nginx and myvesta-php-fpm once you setup hosting enviroment, so there will not be overhead at all.

Tags:


Post Reply