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

APM Server under Elastic Agent does not shutdown gracefully sometimes #7220

Open
endorama opened this issue Mar 5, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@endorama
Copy link
Member

endorama commented Mar 5, 2025

Please include configurations and logs if available.

For confirmed bugs, please report:

  • Version: At least 8.15.4 (likely earlier)-> 9.0.0-beta
  • Operating System: Linux
  • Discuss Forum URL:
  • Steps to Reproduce: none

I've not been able to consistently reproduce this issue, but has been observed multiple times through logs on Elastic Cloud Hosted.

Sometimes APM Server does not shutdown correctly following the graceful shutdown procedure. The observed behavior is a shutdown being initialized and no additional logs, which suggests an hard termination of the process.

APM Server has been inspected for possible bugs in our graceful shutdown logic but none was found. From my local test runs, in all cases APM Server (standalone) and managed was able to correctly handle a SIGTERM on Elastic Agent process, or the removal of the APM policy from the Elastic Agent policy.

This issue share some similarities with #6875 but is happening on a different OS (evaluation on Windows has not been performed).

@endorama endorama added the bug Something isn't working label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant