Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Optimizing
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Optimizing

PacketVMPacketVM Member, Host Rep
edited June 2012 in General

Hello,

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)

Thanks

Comments

  • @dominicl said: Firstly, would you recommend using LAMP (Apache) or LNMP (Nginx)?

    why you're asking this?

    3..2..1.. everybody vote for LNMP..

    Thanked by 1yomero
  • jcalebjcaleb Member

    minstall

  • PacketVMPacketVM Member, Host Rep
    edited June 2012

    Fair enough. LNMP it is then..

    @dominicl said: 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)

    @jcaleb said: minstall

    Which is? :P

  • TazTaz Member

    Why not use sqlite instead of MySQL?

  • PacketVMPacketVM Member, Host Rep

    @NinjaHawk said: 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..

  • PacketVMPacketVM Member, Host Rep

    Doesn't seem to be able to be used under CentOS, looking at the description.

  • TazTaz Member

    CentminMod for centos.

  • PacketVMPacketVM Member, Host Rep

    @NinjaHawk said: CentminMod for centos.

    Will it optimize as well for me, so that it uses the least RAM?

  • jcalebjcaleb Member

    how much ram does your box have?

  • Mon5t3rMon5t3r Member
    edited June 2012

    @dominicl said: Doesn't seem to be able to be used under CentOS, looking at the description.

    @maxexcloo

    @dominicl said: Will it optimize as well for me, so that it uses the least RAM?

    @eva2000

    ask em directly. :P

  • PacketVMPacketVM Member, Host Rep

    @jcaleb said: how much ram does your box have?

    512mb

  • vanarpvanarp Member

    @dominicl said: Doesn't seem to be able to be used under CentOS

    Any specific reason you chose CentOS over Debian/Ubuntu?

    By the way, is it a 512 mb OpenVZ or Xen/KVM vps?

  • PacketVMPacketVM Member, Host Rep

    Preference really. It's ovz.

  • Nginx love :D .... but it depends, what do you wanna do?

  • TazTaz Member

    Doesn't seem to be able to be used under CentOS

    BTw, Why not use debian squeeze? Lot lighter.

  • vanarpvanarp Member

    @dominicl said: Preference really. It's ovz.

    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!).

    skip-innodb
    default-storage-engine=MyISAM
    

    For further suggestions, you may want to show us output of below commands.

    free -m
    ps aux
    
  • jcalebjcaleb Member

    512mb is a lot man.... why need optimize...

  • jarjar Patron Provider, Top Host, Veteran

    Just that much more you can do with it.

  • jcalebjcaleb Member

    maybe he is using 64bit

  • eva2000eva2000 Veteran

    @dominicl said: Will it optimize as well for me, so that it uses the least RAM?

    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.

Sign In or Register to comment.