Title: Prevent SentryTracer.getLatestActiveSpan from copying all child spans to avoid OOMs · Issue #2815 · getsentry/sentry-java · GitHub
Open Graph Title: Prevent SentryTracer.getLatestActiveSpan from copying all child spans to avoid OOMs · Issue #2815 · getsentry/sentry-java
X Title: Prevent SentryTracer.getLatestActiveSpan from copying all child spans to avoid OOMs · Issue #2815 · getsentry/sentry-java
Description: Description Exception java.lang.OutOfMemoryError: at java.util.Arrays.copyOf (Arrays.java:3136) at java.util.Arrays.copyOf (Arrays.java:3106) at java.util.concurrent.CopyOnWriteArrayList.toArray (CopyOnWriteArrayList.java:321) at java.ut...
Open Graph Description: Description Exception java.lang.OutOfMemoryError: at java.util.Arrays.copyOf (Arrays.java:3136) at java.util.Arrays.copyOf (Arrays.java:3106) at java.util.concurrent.CopyOnWriteArrayList.toArray (C...
X Description: Description Exception java.lang.OutOfMemoryError: at java.util.Arrays.copyOf (Arrays.java:3136) at java.util.Arrays.copyOf (Arrays.java:3106) at java.util.concurrent.CopyOnWriteArrayList.toArray (C...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/2815
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Prevent SentryTracer.getLatestActiveSpan from copying all child spans to avoid OOMs","articleBody":"### Description\n\n````java\nException java.lang.OutOfMemoryError:\n at java.util.Arrays.copyOf (Arrays.java:3136)\n at java.util.Arrays.copyOf (Arrays.java:3106)\n at java.util.concurrent.CopyOnWriteArrayList.toArray (CopyOnWriteArrayList.java:321)\n at java.util.ArrayList.\u003cinit> (ArrayList.java:191)\n at io.sentry.SentryTracer.getLatestActiveSpan (SentryTracer.java:692)\n at io.sentry.Scope.getSpan (Scope.java:201)\n at io.sentry.Hub.getSpan (Hub.java:769)\n at io.sentry.Sentry.getSpan (Sentry.java)\n````\n\ncheck [`SentryTracer.getLatestActiveSpan`](https://github.com/getsentry/sentry-java/blob/f274c795d1c562858cf44f547b8c1e69bc2e0bee/sentry/src/main/java/io/sentry/SentryTracer.java#L699-L709)\nand [`SentryTracer.hasAllChildrenFinished`](https://github.com/getsentry/sentry-java/blob/f274c795d1c562858cf44f547b8c1e69bc2e0bee/sentry/src/main/java/io/sentry/SentryTracer.java#L521-L531)","author":{"url":"https://github.com/markushi","@type":"Person","name":"markushi"},"datePublished":"2023-07-03T12:16:47Z","url":"https://github.com/getsentry/sentry-java/issues/2815"}
| 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:bdd7efd3-1815-ed8e-da46-b20344ecc768 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B388:205334:25A26D:355018:6B0468F9 |
| html-safe-nonce | 421cef3c3fa70500534ef6c18941f8282c2d29eb65dde4f57a9b1848c2087fef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzg4OjIwNTMzNDoyNUEyNkQ6MzU1MDE4OjZCMDQ2OEY5IiwidmlzaXRvcl9pZCI6IjEzNjk2MDE0NTExMzkyOTU0ODEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9d05031e6bff44932f2feedec6c105f2567a084aac9194fe38235edfbd558392 |
| hovercard-subject-tag | issue:1786061982 |
| 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/2815/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c7c7b739476d8cc4b8552cd2b5bb64db10e4b8beb13c546877450bfd256c69c6/getsentry/sentry-java/issues/2815 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c7c7b739476d8cc4b8552cd2b5bb64db10e4b8beb13c546877450bfd256c69c6/getsentry/sentry-java/issues/2815 |
| og:image:alt | Description Exception java.lang.OutOfMemoryError: at java.util.Arrays.copyOf (Arrays.java:3136) at java.util.Arrays.copyOf (Arrays.java:3106) at java.util.concurrent.CopyOnWriteArrayList.toArray (C... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | markushi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| 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 | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| 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