Shared web server resources (CPU&RAM)

Hello, guys !

Long time no seen. I have a question about Linux web servers. I guess it is a more general question, but in my case it is a Linux web server. I want to know how much RAM memory should I put on my servers. Do you have some formula or guidelines on how should I calculate the amount of RAM memory needed on a web server ?

To give you an example, I have this machine:

It has 2GB RAM. Is it enough for it's CPU's ? Or should I add some extra RAM ?

The machine has on it a web server, ftp server, mysql server and named server.

Any advices are welcomed :wink:

It depends on a number of things. For example what webserver, what method is used to handle incoming connections etc, but what it really boils down to is two things.

  1. How much traffic will the server see?
  2. What type of content will it serve.

For most purposes the specs that you posted would be more than enough to serve as a LAMP server.