Record JFR profiles when GC thrashing is detected
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 4.7k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 205
Description
It'd be useful for debugging GC issues in jobs to have allocation profiles when it was occurring. In java 9****, JFR is included in the JDK, we could use that to record profiles when GC thrashing is detected.
Imported from Jira [BEAM-14144](https://issues.apache.org/jira/browse/BEAM-14144). Original Jira may contain additional context.
Reported by: SteveNiemitz.
Contributor guide
Research direction
Start with the imported Jira issue BEAM-14144 to find the additional context and locate the existing GC-thrashing detection path. Determine how Java Flight Recorder profiles should be started and stopped there; done means allocation profiles are recorded when GC thrashing occurs and the behavior is covered by appropriate tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- observability-sre, performance
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100