错误报告
调试模式运行看最后打出来的错误显示是out_of_memory,但是我设置的内存是4GB,应该不会内存不足,不知道是不是哪里配置有问题。
{“Kernel pid terminated”,application_controller,“{application_start_failure,kernel,{{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,quicer_nif,{{badmatch,{error,open_failed,out_of_memo
ry}},[{quicer_nif,init,0,[{file,"quicer_nif.erl"},{line,61}]},{init,‘-run_on_load_handlers/2-fun-0-’,1,[]}]}}}},{kernel,start,[normal,[]]}}}”}
Kernel pid terminated (application_controller) ({application_start_failure,kernel,{{shutdown,{failed_to_start_child,kernel_safe_sup,{on_load_function_failed,quicer_nif,{{badmatch,{error,open_failed,out_of_memor
y}},[{quicer_nif,init,0,[{file,“quicer_nif.erl”},{line,61}]},{init,‘-run_on_load_handlers/2-fun-0-’,1,[]}]}}}},{kernel,start,[normal,[]]}}})
下面是我怀疑有可能有问题的配置项:
node {
name = “emqxsrv@127.0.0.1”
cookie = “emqxsecretcookie”
data_dir = “data”
process_limit = 2097152
max_ports = 1048576
}
log {
file_handlers.default {
level = warning
file = “log/emqx.log”
enable = true
}
}
cluster {
discovery_strategy = k8s
k8s {
apiserver = “https://172.21.0.16:6443”
service_name = emqx
address_type = ip
suffix = “svc.cluster.local”
namespace = message
}
}
环境
- EMQX 版本:5.0.16
- 操作系统版本:centos7.9
重现此问题的步骤
- xxx
- xxx
- xxx