cancel
Showing results for 
Search instead for 
Did you mean: 

CPU and Ram for Web server

CPU and Ram for Web server

How do I count Ram and CPU to my site? Accoriding to number of unique visitors per day and sustained visitors ?

3 REPLIES 3

Re: CPU and Ram for Web server

No, it cannot be calculated easily. 

 

The best way is to check your server's metrics to know how much CPU or RAM your website is using at a given time. 

Re: CPU and Ram for Web server

Well, if you consider 'sustained visitors' to be concurrent visitors, you can work that way?

 

I would suggest allowing 512Mb or so per concurrent visitor and either configure PHP-FPM with the static process manager based on the RAM you have available or, if you're using mod_php5, setting the MaxClients in Apache equal to the amount of 512Mb-Magento processes that you can support. This way you won't overcommit yourself and you can make reasoned decisions about how much RAM to have based on the average number of concurrent visitors your site is getting.

 

if you go the mod_php5 / MaxClients route you will probably want to serve assets via another webserver (like nginx) or to put Varnish or a CDN in front of your site so that you're not tying up your limited Apaches just serving static assets,

 

I hope that helps,

 

Aaron

Problem solved? Click Accept as Solution!
www.iweb.co.uk | Magento Small Business Partner

Re: CPU and Ram for Web server

always good to have a lot of CPU.

------------
MagenX - Magento and Server optimization