Skip to content

Issue 1265 fix jma property names#1266

Open
stokpop wants to merge 3 commits intocloudfoundry:mainfrom
stokpop:issue-1265-fix-jma-property-names
Open

Issue 1265 fix jma property names#1266
stokpop wants to merge 3 commits intocloudfoundry:mainfrom
stokpop:issue-1265-fix-jma-property-names

Conversation

@stokpop
Copy link
Copy Markdown
Contributor

@stokpop stokpop commented May 8, 2026

fix for #1265

stokpop added 3 commits May 8, 2026 16:06
heap_dump_folder set via JBP_CONFIG_JAVA_MEMORY_ASSISTANT was silently
ignored because getHeapDumpFolder() never read the config value. Now
it takes priority over the volume-service fallback and $PWD default.

Added a test using the exact user config to verify all JVM properties
on the final command line.
Fixes cloudfoundry#1265

The JMA agent expects underscores, not hyphens:
- jma.check_interval (not jma.check-interval)
- jma.max_frequency  (not jma.max-frequency)
- jma.heap_dump_folder (not jma.heap-dump-folder)
- jma.log_level (not jma.log-level)
- jma.thresholds.* (not jma.threshold.*)

Also fixes heap_dump_folder config value being silently ignored:
it now takes priority over volume-service fallback and $PWD default.
log_level is now only emitted when explicitly set.

Added tests using the exact user config to verify all JVM properties
appear correctly on the final command line.
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.

1 participant