i'am not professional server administrator.have an ubuntu server that host a Wordpress website use for shoping with almost 200 user's per day.
Server config is : 512 MB Memory with 25 GB SSD I need advice and guides to decrease subprocess of apache and mysqld and also increase server sped
some things that i does to make server stable is : * Make swap file for when memory is completely taken * Restart apache and MySQL server every 1 hour(using a cronjob) * Instead of using Dedicate DNS Server ( like BIND) I just use Cloudflare.
Now I have some questions:
- What other options and methods i have that can use to decrease the running process or increase server speed?
- some times of the week, server use 100% of CPU.. but i dont know what process causes this.how can I log process's that use 100% percent of CPU( is this posible? )
- and a common question is this usual that mysqld and apache use this lot of subprocess?
Here is result of command free -m
:
total used free shared buff/cache available
Mem: 488 353 12 42 121 57
Swap: 1023 182 841
Here is the screen shot of command htop