Is there any way / feature to flush or free up RAM automatically when it is consumed up to 80 or 90%?
Are there any disadvantages of flushing VPS memory when it is nearly full?
What are more server / cpu resource optimization ways?
My Config is: 4GB RAM, 2Core CPU, AAPanel, Nginx, PHP 7.1, PHP Opcache & MariaDB.
Hosting 7 WP sites with around 1000 - 1500 hits per day. Asking this because, today my sites were slow, and some of them were showing unable to establish database connection, I had logged into aapanel to see what's going on there and 80% RAM was consumed. I had flushed the RAM by clicking on RAM icon, and it freed up significant memory, checked the websites again, they were pretty responsive and there was no DB connectivity error either.
Need sincere suggestions.