20% / 45% CPU load every time I refresh my homepage, is it normal?

Hey guys, My CPU load is very high, resulting in me unable to login via ssh or accessing my website (long loading or time out). Im running nginx 1.4 and php5-fpm on ubuntu 14, on a 1 core / 1gb droplet. I’m running 4 Wordpress websites (one of them gets 200 hits per day/others not more then 50 combined) on 1 droplet. The php5-fpm pool for my main site is causing the extreme CPU load. The CPU load is definitely not normal right? Anyone know how I can find the root of the problem? thanks

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

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.

This may solve it.

I installed memcached

HowTos: i install these packages:

sudo apt-get install memcached php5-memcached

then do

sudo service nginx restart

memcached is already preconfigured

then install a Wordpress plugin: Or use one from the keyword in plugin list “memcached” in the search

memcached stores the cache in ram. So lower cpu usage for you.

add this in default config

location ~*  \.(jpg|jpeg|png|gif|ico|css|js|svg|woff|pdf|html|htm)$ {
                expires max;


use cache look add install html minfty and use cache bro

http {

        add_header rt-Fastcgi-Cache $upstream_cache_status;
        fastcgi_param HTTP_IF_NONE_MATCH $http_if_none_match;
        fastcgi_param HTTP_IF_MODIFIED_SINCE $http_if_modified_since;

        # Basic Settings

        sendfile on;
        tcp_nopush on;
        tcp_nodelay on;
        keepalive_timeout 65;
        types_hash_max_size 2048;

        # server_names_hash_bucket_size 64;
        # server_name_in_redirect off;

        include /etc/nginx/mime.types;

        default_type application/octet-stream;
        # Logging Settings

        access_log /var/log/nginx/access.log;
        error_log /var/log/nginx/error.log;

        # Gzip Settings

        gzip on;
        gzip_disable "msie6";

        server_tokens off;
        gzip_vary on;
        gzip_proxied any;
        gzip_comp_level 6;
        gzip_buffers 16 8k;
        gzip_http_version 1.1;
        gzip_min_length 256;
        gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/ld+json application/ application/x-font-opentype application/x-font-truetype application/x-font-tt$
        gzip_disable "MSIE [1-6]\.";
        #set client body size to 2M #
        client_max_body_size 20M;
        # nginx-naxsi config
        # Uncomment it if you installed nginx-naxsi
        include /etc/nginx/naxsi_core.rules;