Webinoly is just the perfect tool for NGINX experts. Give it a try!
0 votes
1.3k views
by Rookie

Hello,

Thanks for webinoly,

I have a woocommerce website running on a vps with these specs:

  • Ram : 15g
  • Cpu : 4
  • Webinoly v : 1.13.1
  • I have installed and activated the Redis and Nginx WordPress plugins

My problem is that i have to connect using ssh every 12h and run the command "sudo webinoly -clear-cache=all" every 12h, otherwise the server will crash because no memory space was found !

I can't find the problem, thanks for help;

Thanks.

by Talented
Even though I believe that you should find the root cause of your problem, as a temporary workaround you could add a cron job, like

0 */15 * * * sudo webinoly -clear-cache=all

2 Answers

0 votes
by Rookie
You can automate clear ram each 59 minutes by example with this tip:

1- nano /root/clearram.sh

- write this:

#!/bin/sh

sync; echo 3 > /proc/sys/vm/drop_caches

swapoff -a

-Save an exit

2- chmod 777 /root/clearram.sh

3- crontab -e

-write: */59 * * * * /root/clearram.sh

Save and exit

4- sudo service cron reload

All done
0 votes
by Rookie
Hi,

Check the -config-cache option at https://webinoly.com/en/documentation/webinolys/ it should do what you need... but... are you sure it is the cache consuming 15GBs of RAM?

What processes are consuming memory? (execute top and then shift-m)

If you share the content of the /opt/webinoly/webinoly.conf file in your vps we might find the reason of your issue there...
Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...