How to optimize openlitespeed-wordpress on GCP f1-micro (1 vCPU, 0.6 GB memory)?

ubob

New Member
#1
Hi,
After deploying openlitespeed-wordpress on Google cloud f1-micro (1 vCPU, 0.6 GB memory, 10GB SSD persistent disk) machine and installing woocommerce plugin im getting this recommendation
Instance is overutilized. Consider switching to the machine type: g1-small (1 vCPU, 1.7 GB memory)
i was kind of hoping that openlitespeed-wordpress will be lighter than other apache based deployments but after installing only woocommerce plugin it seems to be consuming most of the 0.6 GB RAM.
Is there any guide to optimize the resources used by OLS so i could avoid the overuse? Thank you
 
Last edited:

Cold-Egg

Administrator
#2
Hi @ubob ,

LiteSpeed is really lightweight, you can check litespeed process memory percentage.
Code:
ps aux | head -1; ps aux | grep litespeed | grep -v grep
It's quite normal to exceed 0.6GB for a woocommerce site. In general, DB and PHP spend the most.

Best,
Eric
 

ubob

New Member
#3
Hi @ubob ,

LiteSpeed is really lightweight, you can check litespeed process memory percentage.
Code:
ps aux | head -1; ps aux | grep litespeed | grep -v grep
It's quite normal to exceed 0.6GB for a woocommerce site. In general, DB and PHP spend the most.

Best,
Eric
the problem is that when occasionally RAM exceeds the VM instance becomes unresponsive and must be stopped and start again, do you think allocating 1GB for Swap would help overcome this issue?
 

Pong

Administrator
#4
0.6 GB memory looks too small. Your php and database will still need RAM to process, especially for woocommerce, not a simple wordpress site. Setting SWAP should be good practice when running out memory. increasing your RAM should be another soluttion. Enabling cache should help to avoid heavy PHP and database processes. but PHP and MySQL will still need resource to do the job when cache expired or no-cached pages like checkout.
 
Top