New on LowEndTalk? Please Register and read our Community Rules.
Firstly, would you recommend using LAMP (Apache) or LNMP (Nginx)?
Secondly, how would you optimize that so that altogether it uses less RAM as I've tried both and they were using about 250MB RAM (MySQL included). Both have light use (no databases to start with)
why you're asking this?
3..2..1.. everybody vote for LNMP..
Fair enough. LNMP it is then..
Which is? :P
Why not use sqlite instead of MySQL?
Never used that before, but i've seen that people have used LNMP with like 90mb RAM w/ MySQL before or even less than that..
Doesn't seem to be able to be used under CentOS, looking at the description.
CentminMod for centos.
Will it optimize as well for me, so that it uses the least RAM?
how much ram does your box have?
ask em directly. :P
Any specific reason you chose CentOS over Debian/Ubuntu?
By the way, is it a 512 mb OpenVZ or Xen/KVM vps?
Preference really. It's ovz.
Nginx love .... but it depends, what do you wanna do?
BTw, Why not use debian squeeze? Lot lighter.
Something quick to think about is adding below lines under [mysqld] section of the my.cnf file (on debian/ubuntu it is /etc/mysql/my.cnf). It will quickly save you > 20 MB (max is unknown!).
For further suggestions, you may want to show us output of below commands.
512mb is a lot man.... why need optimize...
Just that much more you can do with it.
maybe he is using 64bit
Centmin Mod memory usage out of the box read http://centminmod.com/faq.html#memoryused
Less memory doesn't necessarily mean optimised. It all depends on what your applications require memory wise to run optimally. If your applications require more memory to perform better and you starve those applications in terms of memory, you sometimes will result in less optimal performance.
Optimisation is about efficiently providing the right about of memory that an application requires to run optimally.