lighttpd+freebs6.2问题

weixin_38058748 2007-07-30 10:46:41

1。6.2-RELEASE,内核文件加了一条options         ACCEPT_FILTER_HTTP,其余除把多于的驱动删除了没做改动。
2。/etc/sysctl.conf
    kern.maxfiles=65536
kern.ipc.somaxconn=8192
net.inet.udp.blackhole=1
net.inet.ip.forwarding=1
net.inet.tcp.msl=2000
net.inet.icmp.icmplim=50
net.inet.tcp.syncookies=1
kern.ipc.maxsockbuf=4194304
net.inet.tcp.delayed_ack=0
net.inet.tcp.blackhole=2
net.inet.tcp.sendspace=65536
kern.ipc.shmall=32768
kern.maxvnodes=150000
3。/boot/loader.conf
   kern.maxusers=512
kern.ipc.nmbclusters="0"
#kern.ipc.nsfbufs=65536
kern.ipc.shm_use_phys=1
net.inet.tcp.tcbhashsize=16384
kern.ipc.maxpipekva=33554432
4。lighttpd.error.log内容
2007-07-30 10:17:57: (network_freebsd_sendfile.c.153) file was shrinked: /home/web/1.htm
2007-07-30 10:17:57: (connections.c.573) connection closed: write failed on fd 19
2007-07-30 10:18:16: (network_freebsd_sendfile.c.175) sendfile:  Connection reset by peer 54
2007-07-30 10:18:16: (connections.c.573) connection closed: write failed on fd 7
2007-07-30 10:18:37: (network_freebsd_sendfile.c.175) sendfile:  Connection reset by peer 54
2007-07-30 10:18:37: (connections.c.573) connection closed: write failed on fd 7
2007-07-30 10:18:48: (connections.c.132) (warning) close: 7 Invalid argument
2007-07-30 10:19:04: (network_freebsd_sendfile.c.175) sendfile:  Connection reset by peer 54
2007-07-30 10:19:04: (connections.c.573) connection closed: write failed on fd 7

2007-07-30 10:19:15: (connections.c.132) (warning) close: 7 Invalid argument
5。lihttpd.conf
server.modules   = ( "mod_access",
                     "mod_compress",
                     "mod_accesslog" )

server.document-root = "/home/web/"

server.errorlog = "/usr/local/lighttpd/log/lighttpd.error.log"

index-file.names            = ( "index.html" )

server.event-handler = "freebsd-kqueue"
#server.event-handler = "poll"

#server.max-connections = 8192
server.max-fds = 16384

server.max-keep-alive-requests = 0
#server.max-keep-alive-idle = 30
server.max-keep-alive-idle = 0
server.max-read-idle = 120
server.max-write-idle = 1440


mimetype.assign   = ( ".png"  => "image/png",
                ".jpg"  => "image/jpeg",
                ".jpeg" => "image/jpeg",
                ".gif" => "image/gif",
                ".js" => "text/javascript",
               ".htm" => "text/htm",
                ".html" => "text/html")

accesslog.format = "%h %l %u %t \"%r\" %b %>s \"%{User-Agent}i\" \"%{Referer}i\""
accesslog.filename = "/usr/local/lighttpd/log/lighttpd.log"

server.port = 80

server.pid-file            = "/usr/local/lighttpd/log/lighttpd.pid"

#server.username = "lighttpd"
#server.groupname = "lighttpd"
server.max-worker = 4

compress.filetype  = ("text/plain", "text/html")



把能调的Lighttp参数都调了一遍,没有任何效果,netstat an|grep EST|wc -l到3300左右就很不稳定了,经常拒绝连接。搞得我头都大了,各位高手帮忙分析下吧
...全文
36 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复

477

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧