Skip to content

Commit

Permalink
Fix GC algorithm and set images to Java 17
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo Zanini <[email protected]>
  • Loading branch information
ricardozanini committed Dec 22, 2023
1 parent b66c846 commit 00cf43e
Show file tree
Hide file tree
Showing 25 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion kogito-base-builder-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ modules:
- name: org.kie.kogito.logging
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.openjdk
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.maven
version: "3.9.3"
Expand Down
2 changes: 1 addition & 1 deletion kogito-data-index-ephemeral-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ modules:
- name: org.kie.kogito.system.user
- name: org.kie.kogito.logging
- name: org.kie.kogito.openjdk.headless
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.dataindex.community.ephemeral
Expand Down
2 changes: 1 addition & 1 deletion kogito-data-index-infinispan-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ modules:
- name: org.kie.kogito.system.user
- name: org.kie.kogito.logging
- name: org.kie.kogito.openjdk.headless
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.dataindex.infinispan
Expand Down
2 changes: 1 addition & 1 deletion kogito-data-index-mongodb-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ modules:
- name: org.kie.kogito.system.user
- name: org.kie.kogito.logging
- name: org.kie.kogito.openjdk.headless
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.dataindex.mongodb
Expand Down
2 changes: 1 addition & 1 deletion kogito-data-index-oracle-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ modules:
- name: org.kie.kogito.system.user
- name: org.kie.kogito.logging
- name: org.kie.kogito.openjdk.headless
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.dataindex.oracle
Expand Down
2 changes: 1 addition & 1 deletion kogito-data-index-postgresql-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ modules:
- name: org.kie.kogito.system.user
- name: org.kie.kogito.logging
- name: org.kie.kogito.openjdk.headless
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.dataindex.postgresql
Expand Down
2 changes: 1 addition & 1 deletion kogito-explainability-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ modules:
- name: org.kie.kogito.system.user
- name: org.kie.kogito.logging
- name: org.kie.kogito.openjdk.headless
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.explainability
Expand Down
2 changes: 1 addition & 1 deletion kogito-jit-runner-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ modules:
- name: org.kie.kogito.system.user
- name: org.kie.kogito.logging
- name: org.kie.kogito.openjdk.headless
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.jit-runner
Expand Down
2 changes: 1 addition & 1 deletion kogito-jobs-service-allinone-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ modules:
- name: org.kie.kogito.system.user
- name: org.kie.kogito.logging
- name: org.kie.kogito.openjdk.headless
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.jobs.service.allinone
Expand Down
2 changes: 1 addition & 1 deletion kogito-jobs-service-ephemeral-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ modules:
- name: org.kie.kogito.system.user
- name: org.kie.kogito.logging
- name: org.kie.kogito.openjdk.headless
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.jobs.service.ephemeral
Expand Down
2 changes: 1 addition & 1 deletion kogito-jobs-service-infinispan-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ modules:
- name: org.kie.kogito.system.user
- name: org.kie.kogito.logging
- name: org.kie.kogito.openjdk.headless
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.jobs.service.infinispan
Expand Down
2 changes: 1 addition & 1 deletion kogito-jobs-service-mongodb-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ modules:
- name: org.kie.kogito.system.user
- name: org.kie.kogito.logging
- name: org.kie.kogito.openjdk.headless
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.jobs.service.mongodb
Expand Down
2 changes: 1 addition & 1 deletion kogito-jobs-service-postgresql-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ modules:
- name: org.kie.kogito.system.user
- name: org.kie.kogito.logging
- name: org.kie.kogito.openjdk.headless
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.jobs.service.postgresql
Expand Down
2 changes: 1 addition & 1 deletion kogito-management-console-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ modules:
- name: org.kie.kogito.system.user
- name: org.kie.kogito.logging
- name: org.kie.kogito.openjdk.headless
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.management.console
Expand Down
2 changes: 1 addition & 1 deletion kogito-runtime-jvm-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ modules:
- name: org.kie.kogito.logging
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.openjdk.headless
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.project.versions
- name: org.kie.kogito.s2i.core
Expand Down
4 changes: 2 additions & 2 deletions kogito-swf-builder-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- name: org.kie.kogito.logging
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.openjdk
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.maven
version: "3.9.3"
Expand Down Expand Up @@ -58,7 +58,7 @@
- name: org.kie.kogito.logging
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.openjdk
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.maven
version: "3.9.3"
Expand Down
4 changes: 2 additions & 2 deletions kogito-swf-devmode-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- name: org.kie.kogito.logging
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.openjdk
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.maven
version: "3.9.3"
Expand Down Expand Up @@ -56,7 +56,7 @@
- name: org.kie.kogito.logging
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.openjdk
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.maven
version: "3.9.3"
Expand Down
2 changes: 1 addition & 1 deletion kogito-task-console-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ modules:
- name: org.kie.kogito.system.user
- name: org.kie.kogito.logging
- name: org.kie.kogito.openjdk.headless
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.task.console
Expand Down
2 changes: 1 addition & 1 deletion kogito-trusty-infinispan-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ modules:
- name: org.kie.kogito.system.user
- name: org.kie.kogito.logging
- name: org.kie.kogito.openjdk.headless
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.trusty.infinispan
Expand Down
2 changes: 1 addition & 1 deletion kogito-trusty-postgresql-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ modules:
- name: org.kie.kogito.system.user
- name: org.kie.kogito.logging
- name: org.kie.kogito.openjdk.headless
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.trusty.postgresql
Expand Down
2 changes: 1 addition & 1 deletion kogito-trusty-redis-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ modules:
- name: org.kie.kogito.system.user
- name: org.kie.kogito.logging
- name: org.kie.kogito.openjdk.headless
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.trusty.redis
Expand Down
2 changes: 1 addition & 1 deletion kogito-trusty-ui-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ modules:
- name: org.kie.kogito.system.user
- name: org.kie.kogito.logging
- name: org.kie.kogito.openjdk.headless
version: "11"
version: "17"
- name: org.kie.kogito.dynamic.resources
- name: org.kie.kogito.launch.scripts
- name: org.kie.kogito.trusty.ui
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ gc_config() {
local timeRatio=${GC_TIME_RATIO:-4}
local adaptiveSizePolicyWeight=${GC_ADAPTIVE_SIZE_POLICY_WEIGHT:-90}
local maxMetaspaceSize
local gcOptions="${GC_CONTAINER_OPTIONS:--XX:+UseParallelOldGC}"
local gcOptions="${GC_CONTAINER_OPTIONS:--XX:+UseParallelGC}"
# for compat reasons we don't set a default value for metaspaceSize
local metaspaceSize

Expand Down
2 changes: 1 addition & 1 deletion modules/kogito-dynamic-resources/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ envs:
description: The maximum metaspace size.
example: "100"
- name: GC_CONTAINER_OPTIONS
description: specify Java GC to use. The value of this variable should contain the necessary JRE command-line options to specify the required GC, which will override the default of `-XX:+UseParallelOldGC`.
description: specify Java GC to use. The value of this variable should contain the necessary JRE command-line options to specify the required GC, which will override the default of `-XX:+UseParallelGC`.
example: -XX:+UseG1GC
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ teardown() {
source ${KOGITO_HOME}/launch/jvm-settings.sh

echo "MAVEN_OPTS is: ${MAVEN_OPTS}"
[[ "${MAVEN_OPTS}" == *"-XX:+UseParallelOldGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:+ExitOnOutOfMemoryError"* ]]
[[ "${MAVEN_OPTS}" == *"-XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:+ExitOnOutOfMemoryError"* ]]
}

@test "run jvm-settings with custom conf" {
Expand All @@ -34,5 +34,5 @@ teardown() {
source ${KOGITO_HOME}/launch/jvm-settings.sh

echo "MAVEN_OPTS is: ${MAVEN_OPTS}"
[[ "${MAVEN_OPTS}" == *"-Xmx1024m -Xms512m -Xotherthing -XX:+UseParallelOldGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:+ExitOnOutOfMemoryError"* ]]
[[ "${MAVEN_OPTS}" == *"-Xmx1024m -Xms512m -Xotherthing -XX:+UseParallelGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:+ExitOnOutOfMemoryError"* ]]
}

0 comments on commit 00cf43e

Please sign in to comment.