apache / apache/pulsar

Replace -XX:+DisableExplicitGC with -XX:+ExplicitGCInvokesConcurrent

Open
#13,737 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.