By mateuszgras
Hello. I have a 2GB Droplet and I have problem with high CPU usage when someone is on the website. The site is running on Apache2 and Prestashop. When site is online the CPU usage is 1-2%, but When somebody will enter on the site, the CPU usage by Apache2 is 60-70%.
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!
What version of PHP are you running? If you’re running PHP 5.6.x, you might consider enabling OPcache with a configuration like this:
[opcache]
opcache.memory_consumption=64
opcache.interned_strings_buffer=4
opcache.max_accelerated_files=4096
opcache.revalidate_freq=600
opcache.fast_shutdown=1
opcache.enable_cli=1
opcache.enable=1
opcache.dups_fix=0
opcache.load_comments=0
opcache.use_cwd=1
opcache.validate_timestamps=1
opcache.save_comments=0
opcache.enable_file_override=1
opcache.inherited_hack=1
opcache.protect_memory=2
Also, lower your KeepAlive timeout, and follow the documentation here for a performance boost:
http://doc.prestashop.com/display/PS16/Performance+Parameters
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.