About Kloxo
Today, I try to let the lighttpd/mysql/kloxo used the RAM less than 80MB. Maybe any people feel it's impossible.
This is the screenshot:
If your site had too many customer.(Too many connects!) The server often return error-500. So I running 5 lighttpd courses.
About the lighttpd.conf, it had this changes:
echo "server.max-worker = 4" >> /etc/lighttpd/lighttpd.conf
echo "server.max-connections = 1024" >> /etc/lighttpd/lighttpd.conf
echo "server.max-fds = 2048" >> /etc/lighttpd/lighttpd.conf
echo "server.max-keep-alive-idle = 5" >> /etc/lighttpd/lighttpd.conf
echo "server.max-keep-alive-requests = 1000" >> /etc/lighttpd/lighttpd.conf
And the my.cnf also had some changes. This is my my.cnf:
[mysqld]
port = 3306
socket = /var/lib/mysql/mysql.sock
skip-locking
key_buffer = 16K
max_allowed_packet = 1M
table_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 64K
skip-bdb
skip-innodb
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
#safe-updates
[isamchk]
key_buffer = 8M
sort_buffer_size = 8M
[myisamchk]
key_buffer = 8M
sort_buffer_size = 8M
[mysqlhotcopy]
interactive-timeout
This kloxo had not site. If it had some site, the used RAM will about 100MB.



#1OH GOD!#2哈哈哈哈哈,小小新 0.0#3感觉Kloxo有点吃资源,特别是内存