By Anders Borg
I scaled up from 1 GB to 2 GB, and after a while Apache made use of that RAM too. I guess that’s as it should be with mpm_prefork using default settings, but documentation about how it works and how it is configured is very scarce.
So to the questions:
Does Apache take into account other applications’ need for RAM, so that swapping doesn’t occur even if an application might need 500 MB or more temporarily?
E.g. scaling large pictures via GD or ImageMagick can easily take 100 Mbyte per picture, and if resources are not immediately destroyed that can accumulate.
si and so are always 0, so at least during normal use it doesn’t cause swapping.
Thanks in advance, Anders
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!
To the best of my knowledge Apache does not take into account other applications. If you’re doing a large amount of image manipulation it might be a better solution to scale horizontally by setting up separate workers to do image manipulation tasks from the droplets serving the public pages and portions of your site.
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.