Skip to content

Kanban #2052: let embedded tomcat_lk.service respect a pre-set JAVA_HEAP - #81

Merged
labkey-willm merged 1 commit into
developfrom
fb_trial_java_heap_override_2052
Sep 3, 2026
Merged

Kanban #2052: let embedded tomcat_lk.service respect a pre-set JAVA_HEAP#81
labkey-willm merged 1 commit into
developfrom
fb_trial_java_heap_override_2052

Conversation

@labkey-willm

Copy link
Copy Markdown
Collaborator

Rationale

Packard's trial-product AMI builds bake on a bigger box (m6a.large) than they deploy to (t3a.medium), and this script always overwrote JAVA_HEAP with a value computed from install-time memory - baking in a heap too large for the actual deploy box and crash-looping tomcat_lk on boot.

Related Pull Requests

Changes

step_tomcat_service_embedded now respects a pre-set JAVA_HEAP instead of always overwriting it, so a caller can pass RAM-percentage flags sized correctly for whatever host actually boots. Every existing caller is unaffected since none set JAVA_HEAP before.

Packard's trial builders bake on a differently-sized box than they deploy to, so a heap computed from JAVA_HEAP_SIZE at install time doesn't fit the deploy box. This lets a caller override JAVA_HEAP directly (e.g. with a RAM-percentage flag); every existing caller is unaffected since none set it before.
@labkey-willm
labkey-willm merged commit a13cde6 into develop Sep 3, 2026
7 checks passed
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.

2 participants