新鲜的部落格~ - 这里是几只90后的Blog,技术、漫画、日记的大杂坛...【这货不是情侣模板啊喂...

4-29 2010

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.

引用地址:

评论: (快速评论点这!)

Hugo
#1OH GOD!
#回复该楼 2010-04-28 22:03
小诺
#2哈哈哈哈哈,小小新 0.0
#回复该楼 2010-04-28 22:33
#3感觉Kloxo有点吃资源,特别是内存
#回复该楼 2011-07-19 18:33

发表评论»