Skip to content

Commit 267969e

Browse files
committed
docs(jres): fix stack_threads default (250) and version resolution env var
Copilot review: - stack_threads default is 250 (DefaultStackThreads in src/java/jres/jre.go), not 200 - troubleshooting resolution order used JBP_CONFIG_<KEY>_JRE; the code checks the documented JBP_CONFIG_<NAME>_JRE name or the auto-generated JBP_CONFIG_<KEY> alias
1 parent 11837e2 commit 267969e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/IMPLEMENTING_JRES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ cf set-env myapp JBP_CONFIG_OPEN_JDK_JRE \
290290
'{memory_calculator: {stack_threads: 300, class_count: 500, headroom: 10}}'
291291
```
292292

293-
`stack_threads` — number of user threads (default: 200); affects `-Xss` heap budget.
293+
`stack_threads` — number of user threads (default: 250); affects `-Xss` heap budget.
294294
`class_count` — estimated loaded classes (default: auto-detected); affects `-XX:MaxMetaspaceSize`.
295295
`headroom` — percent of total memory to leave unallocated (default: 0).
296296

@@ -344,7 +344,7 @@ cf ssh myapp -- ls /home/vcap/deps/0/jre/bin/java-buildpack-memory-calculator-*
344344
cf ssh myapp -- echo $MEMORY_LIMIT
345345
```
346346

347-
**Wrong Java version selected** — check resolution order: `BP_JAVA_VERSION` → `JBP_CONFIG_<KEY>_JRE` → manifest default. Enable debug: `cf set-env myapp BP_LOG_LEVEL DEBUG`.
347+
**Wrong Java version selected** — check resolution order: `BP_JAVA_VERSION` → the documented `JBP_CONFIG_<NAME>_JRE` name (or the auto-generated `JBP_CONFIG_<KEY>` alias) → manifest default. Enable debug: `cf set-env myapp BP_LOG_LEVEL DEBUG`.
348348

349349
## Summary
350350

0 commit comments

Comments
 (0)