nginx报worker process 13666 exited on signal 11的错误

在nginx上测试lua的执行效率时.顺手看了下ng的errorlog,发现里面出现大量的alert worker process 13666 exited on signal 11 虽然不影响程序执行,但是总是报这种alert也不太好 demesg查看下原因

查看dmesg是检测系统运行状态的常用手段,通常可以帮我们排查很多问题。当然,如果有进程异常退出,dmesg也可以看到。

>>dmesg
[ 5650.202550] show_signal_msg: 70 callbacks suppressed
[ 5650.202556] nginx[9221]: segfault at 2018 ip 00000000004525b2 sp 00007fff9c1b2030 error 4 in nginx[400000+fb000]
[ 5650.207279] nginx[9222]: segfault at 2018 ip 00000000004525b2 sp 00007fff9c1b2030 error 4 in nginx[400000+fb000]
[ 5650.331104] nginx[9228]: segfault at 2018 ip 00000000004525b2 sp 00007fff9c1b2030 error 4 in nginx[400000+fb000]
[ 5650.371808] nginx[9205]: segfault at 2018 ip 00000000004525b2 sp 00007fff9c1b2030 error 4 in nginx[400000+fb000]
[ 5650.464623] nginx[9229]: segfault at 2018 ip 00000000004525b2 sp 00007fff9c1b2030 error 4 in nginx[400000+fb000]
[ 5650.470810] nginx[9220]: segfault at 2018 ip 00000000004525b2 sp 00007fff9c1b2030 error 4 in nginx[400000+fb000]
[ 5650.557086] nginx[9242]: segfault at 2018 ip 00000000004525b2 sp 00007fff9c1b2030 error 4 in nginx[400000+fb000]
[ 5650.661093] nginx[9243]: segfault at 2018 ip 00000000004525b2 sp 00007fff9c1b2030 error 4 in nginx[400000+fb000]
[ 5650.680933] nginx[9235]: segfault at 2018 ip 00000000004525b2 sp 00007fff9c1b2030 error 4 in nginx[400000+fb000]
[ 5650.687602] nginx[9255]: segfault at 2018 ip 00000000004525b2 sp 00007fff9c1b2030 error 4 in nginx[400000+fb000]

想了想,应该是打开文件数超限的问题

>>ulimit -n

原来只有1024....顺手改只

>>su
>>ulimit -n 65535
>>service nginx restart

还发现一个好事情,typecho竟然支持markdown语法

浙ICP备16045237号-1