Howdy, Stranger!

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


Can I still free more RAM?
New on LowEndTalk? Please Register and read our Community Rules.

Can I still free more RAM?

curiosuscuriosus Member
edited October 2012 in General

It's my first time running a LEB on my own.
I just installed Nginx, MySQL, PHP.
I am running one very new Wordpress site, no visitors yet.
But my RAM usage is already 100+MB.
I was wondering what do you think of this stats.
Is there something there that I should disable or adjust?

!(http://i47.tinypic.com/34zzrdh.png)

Comments

  • For one wordpress site, you could save a lot of ram sure. Did you install with a script like Minstall or Tuxlite or did you just apt-get the packages without any config?

    I'd configure mySQL for low memory usage and reduce amount of php and nginx workers for starters.

    SonicBoxes.com - VPS Tips, Tricks & Tutorials
    6UA.net Various tools, screenshots, password gen, looking glass, etc..

  • @nunim said: For one wordpress site, you could save a lot of ram sure. Did you install with a script like Minstall or Tuxlite or did you just apt-get the packages without any config?

    I'd configure mySQL for low memory usage and reduce amount of php and nginx workers for starters.

    apt-get only. I've removed innodb. How do you reduce the amount of php and nginx workers?

  • Are you out of RAM? Why optimize, when there is still enough resources?

  • @breton said: Are you out of RAM? Why optimize, when there is still enough resources?

    I've only 128MB

  • @curiosus said: I've only 128MB

    So? Have you plans to add there other sites in the near future?

  • edit your /etc/my.cnf or wherever my.cnf and restart mysql after the edit, and give this a shot, not mine, it's from the CentOS bootstrap over at freevps.us

    [mysqld]
    default-storage-engine = myisam
    key_buffer = 1M
    query_cache_size = 1M
    query_cache_limit = 128k
    max_connections=25
    thread_cache=1
    skip-innodb
    query_cache_min_res_unit=0
    tmp_table_size = 1M
    max_heap_table_size = 1M
    table_cache=256
    concurrent_insert=2
    max_allowed_packet = 1M
    sort_buffer_size = 64K
    read_buffer_size = 256K
    read_rnd_buffer_size = 256K
    net_buffer_length = 2K
    thread_stack = 64K

  • Here some about optimizing
    http://tuxlite.com/lnmp-readme/

  • In /etc/nginx/nginx.conf

    worker_processes 1;

    and in /etc/php5/fpm/pool.d/www.conf

    pm = ondemand

    That should save a lot of RAM

    Thanked by 1curiosus
  • Looks like you're using OVZ. Sometimes free doesn't accurately reflect OVZ memory usage. Try using htop instead. Free -m reports my usage as 232 MB but htop reports 100MB including a 64MB apc cache.

    Thanked by 1curiosus
Sign In or Register to comment.