Replace -XX:+DisableExplicitGC with -XX:+ExplicitGCInvokesConcurrent
Open
lifecycle/stale
Stale
type/enhancement
- Dominant language
- Java
- Stars
- 15.3k
- Forks
- 3.8k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 160
Description
java.nio.Bits#reserveMemory use System.gc() to trigger VM's Reference processing. DisableExplicitGC may cause OOM.
Contributor guide
Research direction
Locate the JVM option in Pulsar's startup or configuration files, then read the behavior referenced for java.nio.Bits#reserveMemory and System.gc(). Replace the DisableExplicitGC setting with ExplicitGCInvokesConcurrent and verify that the resulting configuration contains the requested flag.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, performance
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100