We have configured an application in wildfly server using YAJSW wrapper. we have added following command in wrapper.conf file
wrapper.java.additional.xx = -javaagent:path/to/jmx_prometheus_javaagent-0.18.0.jar=12345:/path/to/config.yaml
When we start the application it crashes after sometime and no reason could be found in logs.
When we run the application in console mode using following command the application works perfectly and also exports metrics which can be viewed in promtheus dashboard.
sudo java -javaagent:path/to/jmx_prometheus_javaagent-0.18.0.jar=12345/path/to/:config.yaml -jar wrapper.jar -c /path/to/wrapper.conf
Can anyone help what could be the reason of application crashing and how it can be resolved.
We have configured an application in wildfly server using YAJSW wrapper. we have added following command in wrapper.conf file wrapper.java.additional.xx = -javaagent:path/to/jmx_prometheus_javaagent-0.18.0.jar=12345:/path/to/config.yaml
When we start the application it crashes after sometime and no reason could be found in logs.
When we run the application in console mode using following command the application works perfectly and also exports metrics which can be viewed in promtheus dashboard. sudo java -javaagent:path/to/jmx_prometheus_javaagent-0.18.0.jar=12345/path/to/:config.yaml -jar wrapper.jar -c /path/to/wrapper.conf
Can anyone help what could be the reason of application crashing and how it can be resolved.