Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apache Tomcat fails to shutdown gracefully if JFR is enabled in agent config #2205

Open
jtduffy opened this issue Jan 15, 2025 · 1 comment

Comments

@jtduffy
Copy link
Contributor

jtduffy commented Jan 15, 2025

Description

If jfr.enabled is true in the agent config, Apache Tomcat fails to shutdown via the shutdown.sh command. This was tested and reproduced against Tomcat v9 and v10.

Repro

  • In the newrelic.yml (or equivalent) set jfr.enabled to true
  • In the Tomcat bin folder, add the required -javaagent flag to CATALINA_OPTS:
CATALINA_OPTS="$CATALINA_OPTS -javaagent:/path/to/newrelic.jar"
  • Start Tomcat via the bin/startup.sh start script; allow tomcat to fully start up
  • Verify the agent is attached and reporting JFR data
  • Run the bin/shutdown.sh script. The script seems to exit successfully, but Tomcat is still running.

Internal slack thread

@workato-integration
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant