{"level":"fatal","ts":1554974286.446306,"caller":"plank/main.go:27","msg":"debug failed!","error":"Can't find port in java command line arguments for PID: 7825, args: [/bin/sh -c /usr/start_tomcat_with_ddagent.sh ]","stacktrace":"main.main\n\t/workspace/gopath/src/github.com/solo-io/squash/cmd/plank/main.go:27\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:201"}
note that the port is not included, just /bin/sh -c /usr/start_tomcat_with_ddagent.sh
Java port is not found when port is not included in the process invocation text
In such cases, it may be possible to get the needed text through the
JAVA_PORT
environment variable.from slack discussion
{"level":"fatal","ts":1554974286.446306,"caller":"plank/main.go:27","msg":"debug failed!","error":"Can't find port in java command line arguments for PID: 7825, args: [/bin/sh -c /usr/start_tomcat_with_ddagent.sh ]","stacktrace":"main.main\n\t/workspace/gopath/src/github.com/solo-io/squash/cmd/plank/main.go:27\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:201"}
note that the port is not included, just
/bin/sh -c /usr/start_tomcat_with_ddagent.sh
however, the port is included in the
JAVA_OPTS
: