WordPress On-click app is taking so much ram even it’s fresh wordpress no plgins!
the ram useg is 70 dosen’t go below that whay is that??!
Ubuntu WordPress on 18.04
1gb ram 1 cpu 25disk

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
3 answers

Hello, @mohammdkopa123

If the MySQL is using most of the RAM you can check if the configuration can be tweaked for better performance.

You can use the MySQLTuner script. in order to achieve this.

The MySQLTuner is a script written in Perl and allows you to quickly test your MySQL configuration and it gives you suggestions for adjustments to increase performance and stability.

According to the official GitHub page, it supports 300 indicators for MySQL/MariaDB/Percona Server in this last version.

To run the script you could do the following:

  • SSH to your Droplet
  • Download the script:
wget http://mysqltuner.pl/ -O mysqltuner.pl
  • Then execute it:
perl mysqltuner.pl

The script would run multiple checks against your MySQL instance, all checks done by MySQLTuner are documented here.

Also as stated in the official documentation, it is still extremely important for you to fully understand each change you make to a MySQL database server. If you don’t understand portions of the script’s output, or if you don’t understand the recommendations, you should consult a knowledgeable DBA or system administrator that you trust.

As a good practice make sure to always test your changes on staging environments before implementing them on your production database.

On the same note, if you want to have a worry-free MySQL hosting and focus on your application, I would recommend trying out the DigitalOcean Managed Databases:

https://www.digitalocean.com/products/managed-databases-mysql/

This was mini tutorial was posted from @bobbyiliev in this question in our community: https://www.digitalocean.com/community/questions/how-to-tweak-mysql-mariadb-configuration-for-increased-performance-and-stability

Hope that this helps!
Regards,
Alex

Hi,

May I know the output from following commands?

free -h
ps aux | head -1; ps aux | sort -rnk 4 | head -5

And the new openlitespeed wordpress image is base on Ubuntu 20.04, can you confirm this is the image you are using?

Best,
Eric

          total        used        free      shared  buff/cache   available

Mem: 985M 693M 69M 68M 221M 84M
Swap: 0B 0B 0B

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
mysql 22725 0.7 41.9 1404424 423664 ? Ssl 12:46 0:33 /usr/sbin/mysqld
www-data 23061 0.0 10.2 650672 103432 ? S 13:21 0:01 /usr/sbin/apache2 -k start
www-data 22638 0.0 10.0 652928 101252 ? S 12:45 0:01 /usr/sbin/apache2 -k start
www-data 23058 0.0 9.3 651028 93988 ? S 13:21 0:01 /usr/sbin/apache2 -k start
www-data 22589 0.0 9.2 650948 93140 ? S 12:45 0:01 /usr/sbin/apache2 -k start
tkank you

im using Ubuntu WordPress on 18.04

Submit an Answer