Skip to content

[ISSUE #8160] Document bootstrap GC and memory diagnostics - #8248

Merged
Aias00 merged 1 commit into
apache:masterfrom
boundlessocean1:codex/docs-8160-bootstrap-gc
Oct 30, 2026
Merged

Aias00 merged 1 commit into
apache:masterfrom
boundlessocean1:codex/docs-8160-bootstrap-gc

Conversation

@boundlessocean1

Copy link
Copy Markdown
Contributor

Closes #8160.

Bootstrap operators lacked a linked guide for distinguishing allocation pressure, retained heap, direct/native memory growth and latency unrelated to GC. Add English and Chinese diagnostic guides, linked from the container deployment guide, with JDK 17 commands, effective Docker/archive JVM defaults, complete BOOT_JVM override semantics, writable/rotated diagnostic storage, NMT coverage, metrics-source distinctions, a symptom table and a repeatable workload matrix using the existing Divide gateway benchmark.

Replace universal memory-sizing recommendations in the container guide with measured-budget guidance. Preserve runtime defaults and clearly label the issue author's historical JDK 21 observations and their measurement limits.

Validation and review:

  • Exercised VM.version, VM.command_line, VM.flags, GC.heap_info, NMT summary/baseline/diff, the GC logging option and a complete 120-second JFR recording on OpenJDK 17.0.20/macOS x86_64 in an isolated allocating JVM; jfr summary confirmed the recording duration. This verifies command operation, not Bootstrap performance or container attach permissions.

  • Checked both translations against the current launchers, Bootstrap metrics configuration, Prometheus exporter and existing benchmark scope.

  • Relative links, Markdown fences, YAML snippets and new-guide shell syntax pass validation.

  • JAVA_HOME=<jdk17> ./mvnw -B -ntp -N apache-rat:check and git diff --check pass.

  • Documentation only; no runtime source changes or full application build. Container smoke results are provided by CI.

  • Read the contribution guidelines.

  • Validate executable documentation examples.

  • Full-repository ./mvnw clean install -Dmaven.javadoc.skip=true (not run for documentation-only changes).

@Aias00 Aias00 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the English/Chinese GC and memory diagnostic guides against the launchers, Bootstrap metrics configuration and issue #8160. Heap defaults, complete BOOT_JVM replacement semantics and metrics-source distinctions match the repository. Relative links, Markdown fences and shell syntax in all 6 shell blocks passed validation. No actionable finding. I did not rerun the author's JVM performance/JFR experiments or a full application build for this documentation change.

Checkstyle and a separate Apache RAT check passed locally. This review covers source and the stated targeted verification; full Docker integration/E2E suites were not run locally.

@Aias00
Aias00 merged commit bf7427a into apache:master Oct 30, 2026
22 checks passed
@Aias00 Aias00 added this to the 2.7.2 milestone Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docs] Add Bootstrap GC and memory diagnostics and JVM tuning guidance

2 participants