Question

Facing High RAM usage when i connect it to domain

Hello everyone, my WordPress website crashes, gets high ram alert and CPU usages once i connect it to my “domain.com

But if use “sub.domain.com” the site runs completely fine. Its not DDoS cause i used Cloudflare 5 sec JavaScript challenge with i am under attack it still faces Database crash or downtimes.

NOTE: No application or plugin error too as both Subdomain and Domain sites are exact clone

Can someone please guide me with this urgently


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.

Hi there,

I could suggest checking a few things:

  • Check what services / processes are consuming most of the resources:

https://www.digitalocean.com/community/questions/how-to-find-the-processes-that-are-consuming-the-most-server-resources

  • Then check your access logs and see what requests are being made. You can do that by following the steps here:

https://devdojo.com/bobbyiliev/bash-script-to-summarize-your-nginx-and-apache-access-logs

If the traffic is legitimate but it is just too much, I could suggest adding some more extra resources to your server to increase the reliability

  • Remove any plugins and themes that you do not really need to reduce the unnecessary load on the server.

  • Follow the steps from this tutorial here on how to optimize your WordPress installation:

https://www.digitalocean.com/community/tutorials/how-to-optimize-wordpress-on-ubuntu-20-04

Regards, Bobby