Title: Sentry won't stop threads during web app stop when used with Tomcat 9 · Issue #2074 · getsentry/sentry-java · GitHub
Open Graph Title: Sentry won't stop threads during web app stop when used with Tomcat 9 · Issue #2074 · getsentry/sentry-java
X Title: Sentry won't stop threads during web app stop when used with Tomcat 9 · Issue #2074 · getsentry/sentry-java
Description: Integration sentry-spring-boot-starter Java Version 11 Version 5.7.3 Steps to Reproduce Define a spring boot project, add sentry client to pom.xml Start a tomcat 9 with a war file deployed Redeploy(replace) a war file (without restarting...
Open Graph Description: Integration sentry-spring-boot-starter Java Version 11 Version 5.7.3 Steps to Reproduce Define a spring boot project, add sentry client to pom.xml Start a tomcat 9 with a war file deployed Redeploy...
X Description: Integration sentry-spring-boot-starter Java Version 11 Version 5.7.3 Steps to Reproduce Define a spring boot project, add sentry client to pom.xml Start a tomcat 9 with a war file deployed Redeploy...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/2074
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sentry won't stop threads during web app stop when used with Tomcat 9","articleBody":"### Integration\r\n\r\nsentry-spring-boot-starter\r\n\r\n### Java Version\r\n\r\n11\r\n\r\n### Version\r\n\r\n5.7.3\r\n\r\n### Steps to Reproduce\r\n\r\n0. Define a spring boot project, add sentry client to pom.xml\r\n1. Start a tomcat 9 with a war file deployed\r\n2. Redeploy(replace) a war file (without restarting tomcat)\r\n\r\nThe issue is similar to https://github.com/getsentry/sentry-java/issues/487 or https://github.com/getsentry/sentry-java/issues/420\r\n\r\n### Expected Result\r\n\r\nSentry should stop threads once web app is stopped\r\n\r\n### Actual Result\r\n\r\norg.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [ftadmin] created a ThreadLocal with key of type [io.sentry.environment.SentryEnvironment$1] (value [io.sentry.environment.SentryEnvironment$1@26c761df]) and a value of type [java.util.concurrent.atomic.AtomicInteger] (value [0]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.","author":{"url":"https://github.com/wukrwurk","@type":"Person","name":"wukrwurk"},"datePublished":"2022-06-01T12:04:56Z","url":"https://github.com/getsentry/sentry-java/issues/2074"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fd082e11-77e3-c297-fd4c-521fc746bbb4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B49A:239D34:48E5B3:618B1C:6B049BA4 |
| html-safe-nonce | f08301dd5a6ddc075f47369cbf69914d0560b82d057984e91ac238241109c52d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDlBOjIzOUQzNDo0OEU1QjM6NjE4QjFDOjZCMDQ5QkE0IiwidmlzaXRvcl9pZCI6IjkwMzQ4OTUzNTc0Mzk2NzkzOTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 06b3cf71c82ba09f5db4a4d2f74b6b56ef82d2cab9db8f7529b19777063e40a0 |
| hovercard-subject-tag | issue:1255820042 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/2074/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c2d8715465f8a73a0a54e3e997608463487253422c4b8fc1e8555d8bd7bc44f1/getsentry/sentry-java/issues/2074 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c2d8715465f8a73a0a54e3e997608463487253422c4b8fc1e8555d8bd7bc44f1/getsentry/sentry-java/issues/2074 |
| og:image:alt | Integration sentry-spring-boot-starter Java Version 11 Version 5.7.3 Steps to Reproduce Define a spring boot project, add sentry client to pom.xml Start a tomcat 9 with a war file deployed Redeploy... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wukrwurk |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3fd14143b75b2af7b76bbd23b069867d091adfcc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width