Hi, I’m new to DigitalOcean and currently set up WordPress site on LEMP on 1GB Ram 30GB SSD Disk New York 3 Ubuntu 14.04.3 x64
I have over 400MB of data in MySql and notice my site is loading very slow. I have tested with no plugin activated + WordPress default theme but it does not make any dramatic improvement on page loading.
I have ran top
on homepage load and this is how it looks like but have no idea where to go from here. When the page loads, CPU takes up almost 100% on php5-fpm
.
%Cpu(s): 91.6 us, 8.4 sy, 0.0 ni, 0.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 1017860 total, 764648 used, 253212 free, 4324 buffers
KiB Swap: 0 total, 0 used, 0 free. 265676 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1788 www-data 20 0 409616 106304 25172 R 18.6 10.4 0:09.44 php5-fpm
1804 www-data 20 0 409624 104380 23244 R 18.6 10.3 0:04.69 php5-fpm
1832 www-data 20 0 409016 99672 19880 R 18.6 9.8 0:01.16 php5-fpm
1833 www-data 20 0 385340 76320 19892 R 18.6 7.5 0:00.96 php5-fpm
1805 www-data 20 0 409136 101436 20676 R 18.3 10.0 0:05.67 php5-fpm
928 mysql 20 0 886948 67060 3632 S 7.3 6.6 1:17.93 mysqld
8 root 20 0 0 0 0 R 0.3 0.0 0:00.90 rcuos/0
1393 ohsik 20 0 24820 1312 864 R 0.3 0.1 0:02.67 top
1 root 20 0 33500 2312 936 S 0.0 0.2 0:01.71 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root 20 0 0 0 0 S 0.0 0.0 0:00.04 ksoftirqd/0
5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H
6 root 20 0 0 0 0 S 0.0 0.0 0:00.99 kworker/u2:0
7 root 20 0 0 0 0 S 0.0 0.0 0:00.89 rcu_sched
Any idea where to go from here? Do I need bigger size droplets or some kind of server optimization?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
I think your database need more memory for cache. try to increase your server configuration may be your load time get down.
Use Easy Engine. It make Nigenx WordPress installation secure, faster and easier.
With your configuration you can install it.