By Giordano
Good morning, From my droplet graphs, I don’t understand why the CPU doesn’t rise above 30%. I tried to do a resize with this feature: CPU-Optimized Dedicated CPU 4 vCPUs 8 GB 50 GB 5 TB $80/mo
but still the CPU doesn’t rise above 30%. The website having good traffic is very slow and I need to solve this slowness problem.
Thank you very much
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!
Hi @giordano,
It’s possible the issue is not coming from your Resources but from your configuration.
Are you using Apache or Nginx? It’s possible you are hitting the max workers allowed. Let’s assume you are using Apache. So first, what are Apache Workers, and what are they used for:
Imagine you are in a cinema, and there are 300 chairs inside. Those are the Apache Workers and the movie is your Website. If someone wants to watch the movie(your website) they need to sit in the chair (Apache Workers). If all 300 chars are taken, the 301 person needs to wait for someone to leave in order for them to sit and watch the movie. That’s how ApacheWorkers work. Once all ApacheWorkers are taken, a new person that wants to open your website waits for a spot to be open and only after that they can see your website.
Usually, these limits are set by 256 by default but they can be increased.
You can open your Apache configuration file. In there you should see something similar to:
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
Increase both the ServerLimit and MaxClients options, restart Apache, and see if this would solve your issue.
It’s possible they do not exist (haven’t been added) and the default values are the ones above. Adding them to the prefork content of apache mods should be fine as well.
Don’t forget to restart Apache afterward.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.