LJAMP: February 2008 Archives

在lighttpd.conf中添加

server.max-keep-alive-requests = 0
server.event-handler = "linux-sysepoll"
server.max-fds = 8192
server.stat-cache-engine = "simple"

先解决高负载+Too many open files+out of fds的问题~

ps:默认编译厄stat-cache-engine不支持fam?

明天接着研究官方性能文档

Tomcat宕机分析

| | Comments (0) | TrackBacks (0)

Lighttpd + Tomcat@Linux经常宕机, html正常,Tomcat经常挂掉.

网上搜索的Tomcat加速方法都找了,BEA推荐ulimit fod为4096,俺们设置成8192照样挂

lsof -p pid.of.Tomcat.Instance | wc -l 发现已经超过了8200

为啥呢?

lsof 一条一条的看~

发现都是lecene的索引文件的open~

同开发者交流了一下发现是索引文件打开没有关闭之故....

so~

关于这个存档

This page is a archive of entries in the LJAMP category from February 2008.

LJAMP: December 2007 is the previous archive.

LJAMP: May 2008 is the next archive.

Find recent content on the main index or look in the archives to find all content.