refactor(docker): consolidate JVM options and improve dynamic memory computation - #5933
refactor(docker): consolidate JVM options and improve dynamic memory computation#5933balazs-szucs wants to merge 36 commits into
Conversation
…computation Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
There was a problem hiding this comment.
Pull request overview
Refactors the container startup/JVM configuration to consolidate JVM option selection into a single _JVM_OPTS source and adjusts dynamic JVM memory percentage computation in init-without-ocr.sh.
Changes:
- Simplified dynamic memory computation (removed profile-based branches; adjusted Initial/Max RAM % for mid/large containers).
- Consolidated JVM option selection to
JAVA_BASE_OPTS>_JVM_OPTS> fallback defaults, and added dynamicConcGCThreadssizing based on CPU count. - Updated embedded Docker images to set a single
_JVM_OPTS(Shenandoah generational) instead of balanced/performance profiles.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| scripts/init-without-ocr.sh | Removes profile-based selection, tweaks memory sizing, adds CPU-based ConcGCThreads, consolidates JVM option sourcing. |
| docker/embedded/Dockerfile.ultra-lite | Replaces profile env vars with single _JVM_OPTS default. |
| docker/embedded/Dockerfile.fat | Replaces profile env vars with single _JVM_OPTS default (currently has a malformed flag string). |
| docker/embedded/Dockerfile | Replaces profile env vars with single _JVM_OPTS default. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
🚀 PR Test DeploymentYour PR has been deployed for testing! 🔗 Test URL: http://23.22.230.180:5933 This deployment will be automatically cleaned up when the PR is closed. |
…point Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
|
/deploypr |
🚀 PR Test DeploymentYour PR has been deployed for testing! 🔗 Test URL: http://23.22.230.180:5933 This deployment will be automatically cleaned up when the PR is closed. |
1 similar comment
🚀 PR Test DeploymentYour PR has been deployed for testing! 🔗 Test URL: http://23.22.230.180:5933 This deployment will be automatically cleaned up when the PR is closed. |
…ettings for virtual threads Signed-off-by: Balázs Szücs <bszucs1209@gmail.com>
|
/deploypr |
🚀 PR Test DeploymentYour PR has been deployed for testing! 🔗 Test URL: http://23.22.230.180:5933 This deployment will be automatically cleaned up when the PR is closed. |
…rary file detection test
…t snapshot checks again...
|
/deploypr |
1 similar comment
|
/deploypr |
|
/deploypr |
🚀 PR Test DeploymentYour PR has been deployed for testing! 🔗 Test URL: http://54.175.155.236:5933 This deployment will be automatically cleaned up when the PR is closed. |
…le updates for remote-only configurations
Closes: #5866
Description of Changes
Checklist
General
Documentation
Translations (if applicable)
scripts/counter_translation.pyUI Changes (if applicable)
Testing (if applicable)