frank.etzenbach
There is no one correct optimal amount of RAM.
It depends on the load on your server ie how many processes are running & how much RAM they each use & so on.
Note that Linux will try to use all available RAM, so if you see your RAM fully used, then be happy as that is a good thing.
A common rule of thumb is to see how much swap memory is used,
& if it is half or more than the amount of physical RAM, then you should add more physical RAM.
Check memory usage (ideally at busy times) with
top
top -i
&
htop