{"id":20474293,"url":"https://github.com/marschall/jfr-leaker","last_synced_at":"2025-08-02T20:05:03.518Z","repository":{"id":138921927,"uuid":"260280746","full_name":"marschall/jfr-leaker","owner":"marschall","description":"a reproducer for a JFR memory leak","archived":false,"fork":false,"pushed_at":"2020-05-30T18:56:08.000Z","size":396,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T23:02:53.368Z","etag":null,"topics":["java","java-flight-recorder","jfr","memory-leak"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marschall.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-30T17:57:07.000Z","updated_at":"2020-05-30T18:56:10.000Z","dependencies_parsed_at":"2023-03-15T04:00:39.404Z","dependency_job_id":null,"html_url":"https://github.com/marschall/jfr-leaker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marschall/jfr-leaker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marschall%2Fjfr-leaker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marschall%2Fjfr-leaker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marschall%2Fjfr-leaker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marschall%2Fjfr-leaker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marschall","download_url":"https://codeload.github.com/marschall/jfr-leaker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marschall%2Fjfr-leaker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268448176,"owners_count":24251994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","java-flight-recorder","jfr","memory-leak"],"created_at":"2024-11-15T14:28:56.364Z","updated_at":"2025-08-02T20:05:03.491Z","avatar_url":"https://github.com/marschall.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"JFR Leaker\n==========\n\nA reproducer for the [JDK-8245951](https://bugs.openjdk.java.net/browse/JDK-8245951) JFR memory leak. The leak is `jdk.jfr.internal.TypeLibrary` keeps on holding to `jdk.jfr.internal.PlatformEventType` instances even when the underlying classes are unloaded.\n\nThis can for example happen when you redeploy a web application that contains custom JFR events.\n\nThe dominator tree shows the issue is `jdk.jfr.internal.TypeLibrary`.\n\n![dominator tree](https://github.com/marschall/jfr-leaker/raw/master/src/main/javadoc/dominator_tree.png \"Dominator Tree\")\n\nThe histogram shows the issue is `jdk.jfr.internal.TypeLibrary` holding on to `jdk.jfr.internal.PlatformEventType`.\n\n![histogram](https://github.com/marschall/jfr-leaker/raw/master/src/main/javadoc/histogram.png \"Histogram\")\n\nThe object list shows the issue is `jdk.jfr.internal.TypeLibrary#types` holding on to `jdk.jfr.internal.PlatformEventType`.\n\n![list objects](https://github.com/marschall/jfr-leaker/raw/master/src/main/javadoc/list_objects.png \"List Objects\")\n\nThe classloader explorer shows not ClassLoader-leaks.\n\n![classloader explorer](https://github.com/marschall/jfr-leaker/raw/master/src/main/javadoc/classloader_explorer.png \"ClassLoader Explorer\")\n\n\nThe issue can be reproduced with\n\n```\njava -Xmx64m -Xms64m -XX:MaxMetaspaceSize=64m -XX:+UseSerialGC -XX:+HeapDumpOnOutOfMemoryError -jar target/jfr-leaker-0.1.0-SNAPSHOT.jar \n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarschall%2Fjfr-leaker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarschall%2Fjfr-leaker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarschall%2Fjfr-leaker/lists"}