2019独角兽企业重金招聘Python工程师标准>>>
启动奔溃日志:
d /opt/jdk1.8.0_152/jre/.systemPrefs/prefs.xml
logPath=(null).
ACE_Dev_Poll_Reactor::open failed inside ACE_Dev_Poll_Reactor::CTOR: 没有那个文件或目录
ACE_Dev_Poll_Reactor::open failed inside ACE_Dev_Poll_Reactor::CTOR: 没有那个文件或目录
ACE_Dev_Poll_Reactor::open failed inside ACE_Dev_Poll_Reactor::CTOR: 没有那个文件或目录
ACE_Dev_Poll_Reactor::open failed inside ACE_Dev_Poll_Reactor::CTOR: 没有那个文件或目录
ACE_Dev_Poll_Reactor::open failed inside ACE_Dev_Poll_Reactor::CTOR: 没有那个文件或目录
RTSP_CLIENT_Init success.
ACE_Select_Reactor_T::open failed inside ACE_Select_Reactor_T::CTOR: 无效的参数
ACE_Select_Reactor_T::open failed inside ACE_Select_Reactor_T::CTOR: 无效的参数
ACE_Select_Reactor_T::open failed inside ACE_Select_Reactor_T::CTOR: 无效的参数
ACE_Select_Reactor_T::open failed inside ACE_Select_Reactor_T::CTOR: 无效的参数
ACE_Select_Reactor_T::open failed inside ACE_Select_Reactor_T::CTOR: 无效的参数
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f073deb2f34, pid=8856, tid=0x00007f073be10700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_152-b16) (build 1.8.0_152-b16)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.152-b16 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C [libACE.so.6.1.0+0xe4f34] ACE_Dev_Poll_Reactor::work_pending_i(ACE_Time_Value*)+0x84
#
# Core dump written. Default location: /home/ivsapt/apache-tomcat-8.0.32/bin/core or core.8856 (max size 1 kB). To ensure a full core dump, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/ivsapt/apache-tomcat-8.0.32/bin/hs_err_pid8856.log
[thread 139669045831424 also had an error]
Create Log Root Directory[mkdir -p /home/ivsapt/log/netsource/],ret=0
opendir[/home/ivsapt/log/netsource//run/] success
Enter CreatLogDir pszDir = /home/ivsapt/log/netsource//debug/
Leave CreatLogDir
opendir[/home/ivsapt/log/netsource//debug/] success
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
RAX=0x0000000000000000 is an unknown value
RBX=0x00007f073be0fe20 is an unknown value
RCX=0x00007fff8414491d: __vdso_gettimeofday+0x6d in at 0x00007fff84144000
RDX=0x00007f073be0fc80 is an unknown value
RSP=0x00007f073be0fc70 is an unknown value
RBP=0x00000000039d0ec0 is an unknown value
RSI=0x00007f073be0fe20 is an unknown value
RDI=0x0000000000000000 is an unknown value
R8 =0x0000000000000009 is an unknown value
R9 =0x00000000000022c7 is an unknown value
R10=0x0000000000000000 is an unknown value
R11=0x00007f073deb2eb0: _ZN20ACE_Dev_Poll_Reactor14work_pending_iEP14ACE_Time_Value+0 in /home/ivsapt/Bin_linux64/libACE.so.6.1.0 at 0x00007f073ddce000
R12=0x00000000039d0ec0 is an unknown value
R13=0x0000000000000001 is an unknown value
R14=0x00007f073be0fd80 is an unknown value
R15=0x0000000000020000 is an unknown value
Stack: [0x00007f073bdf0000,0x00007f073be11000], sp=0x00007f073be0fc70, free space=127k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libACE.so.6.1.0+0xe4f34] ACE_Dev_Poll_Reactor::work_pending_i(ACE_Time_Value*)+0x84
pass-cluster1-ltltc-hw9yk:/home # ulimit -a
core file size (blocks, -c) 1
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 128381
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) 13539648
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 128381
virtual memory (kbytes, -v) 12743200
file locks (-x) unlimited
pass-cluster1-ltltc-hw9yk:/home # ulimit -n 65535
pass-cluster1-ltltc-hw9yk:/home #
pass-cluster1-ltltc-hw9yk:/home # ulimit -a
core file size (blocks, -c) 1
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 128381
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) 13539648
open files (-n) 65535
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 128381
virtual memory (kbytes, -v) 12743200
file locks (-x) unlimited
max_conn
描述:服务器允许维持的最大TCP连接数
说明:设置此参数后,当服务器已有的连接数达到该值时,新的连接会被拒绝。另外,该参数的值不能超过操作系统ulimit -n的值,同时此值也不宜设置过大,因为swoole_server会一次性申请一大块内存用于存放每一个connection的信息。这个值也会影响服务器的最大并发数,其实Linux是有文件句柄限制的,而且Linux默认不是很高,一般都是1024,生产服务器很容易就达到这个数量。
正确设置Linux的ulimit -n的值的步骤如下:
1.先用命令ulimit -n 查看目前的值
2. vim /etc/security/limits.conf
建议把下面两项都设置为65535
* soft nofile 65535
* hard nofile 65535
(前面的*星号代表全局,针对所有的用户;nofile代表文件句柄数量;soft nofile的值不能超过hard nofile的值)
3.重启Linux系统
命令:shutdown -r now 表示立即重启