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.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Can I still free more RAM?
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?
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.
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?
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
and in /etc/php5/fpm/pool.d/www.conf
That should save a lot of RAM
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.