WordPress server keeps running out of memory and crashing, how can I determine and fix the cause?

In the last month my server just started blowing up randomly. I had a perfect installation that worked flawlessly for 9 months but in the last month the load and memory usage just randomly start spiraling out of control.

It appears that something external causes this to happen but I have no idea what it could be. Rebooting the server will make it run normally for anywhere from a few minutes to 18-24 hours but that’s about the max.

Read More

The memory usage just keeps going up and up and up until the Apache process core dumps. The load spirals up to 20+.

[Tue Jan 05 11:31:22.629436 2016] [core:notice] [pid 1246] AH00052: child pid 8127 exit signal Segmentation fault (11)

For 9 months prior to this this server operated flawlessly with loads [in top] ranging from .01 – .20.

The server is running digital ocean’s one click WordPress installation image, it has 1 GB of memory and 1 GB swap file.

My list of active plugins is as follows: Blubrry PowerPress, CloudFlare, Disqus Comment System, Jetpack,
Login LockDown, Monarch Plugin (Share On Theme123.Net),
Nofollow Links, TinyMCE Advanced, Yoast SEO

None of the plugins have been changed in many months.

My server is running only one WordPress installation and one site. WordPress and plugins are always updated to the latest version. There are no major modifications on the site.

I have had problems in the past 100% on every WordPress installation with the sites being crashed via brute force hacking attempts to /xmlrpc.php I have had to completely deny access to that even though it screws up jetpack because I have not been able to get Order Allow,Deny to work. It either causes 520’s to all URLs across the whole server or it reports “order not allowed here” in the error log and it doesn’t work. This is a separate issue but I would be very grateful if anyone can explain that one either. Past experience indicates leaving xmlrpc.php open to the public will result in crashed sites 100% of the time.

Can anyone help? I’m getting really desperate here this is destroying my site. Haven’t been able to keep it online for more than 24 hours since early December. Nobody has any answers.

Related posts

3 comments

  1. Does your site include alot of images ??

    ##EXCEED MEMORYT LIMIT 
        php_value upload_max_filesize 1000M
        php_value post_max_size 3000M
        php_value memory_limit 9999999999M
        php_value max_execution_time 999
        php_value max_input_time 999
    

    Try Adding the above code into your .htaccess file in the wordpress root. This should help if your browser is crashing and giving memory dump errors. Hope this helps.

  2. if your PHP process using high memory and CPU on your server then I will suggest you please try with PHP-FPM with mpm event modules. You will get better performance with this setup. Once this setup is completed you can install some cache plugins for your word press site.

  3. According to my experience Jetpack plugin uses more resources. You can try it by deactivating.

Comments are closed.