SkyAPM-nodejs
SkyAPM-nodejs copied to clipboard
Segmentation fault
node version v8.16.2 [email protected]
My script file is as follows:
console.log("SW_AGENT_NAME:" + process.env.SW_AGENT_NAME)
console.log("SW_AGENT_COLLECTOR_BACKEND_SERVICES:" + process.env.SW_AGENT_COLLECTOR_BACKEND_SERVICES)
require('skyapm-nodejs').start({
// Service name is showed in sky-walking-ui. Suggestion: set an unique name for each service, one
// service's nodes share the same code.
// this value cannot be empty.
serviceName: process.env.SW_AGENT_NAME,
// The identifier of the instance
instanceName: process.env.HOSTNAME,
// Collector agent_gRPC/grpc service addresses.
// default value: localhost:11800
directServers: process.env.SW_AGENT_COLLECTOR_BACKEND_SERVICES
});
I try to run, but throws an error:
Segmentation fault
I have this problem in centos7.5.1804, kernel version 3.10.0-862.el7.x86_64, after upgrading the kernel to 5.8.13-1.el7.elrepo.x86_64, it runs successfully