hi
i just installed virtualmin and imported my woocommerce site , i have 10k products and my database size is about 180mb , my vps ram is 1gb and swap size is 270mb .
my problem is whenever i try edit products my ram get full and mysql stop working and get error : “unable to connect to database” , after i restart mysql i can reach my website again .
the result of “free -m” is :
total used free shared buff/cache available
Mem: 985 474 218 199 292 195
Swap: 270 244 26
is it possible to do anything or i should upgrade my vps to more ram ?
its only website in this vps
180 MB db size should not be a problem. You could try, in Webmin -> Servers -> MySQL Database Server -> MySQL Server Configuration: Maximum packet size: 512 MB
If this does not solve your problem, feel free to undo the change.
When installing Virtualmin, do you remember what memory size you defined for MySQL in the Install Wizard? Options were small to large. If MySQL process is being terminated on your VPS due to lack of memory, you could try increasing RAM. Also see https://www.virtualmin.com/documentation/id%2Cvirtualmin_on_low_memory_systems
Now if you could apply this to the box next to the label captioned ‘MySQL configuration file’ in the Module Configuration of MySQL Database Server, we could all rejoice. How to get to the Module Configuration screen, you ask? Webmin → Servers → MySQL Database Server and then click the cog icon on the top left of the screen.
Once you have done the deed:
Webmin → Servers → MySQL Database Server → MySQL Server Configuration: Maximum packet size: 512 MB