File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
modules/maven/default/artifacts/opt/jboss/container/maven/default Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ function maven_init_var_MAVEN_SETTINGS_XML() {
34
34
}
35
35
36
36
function maven_init_var_MAVEN_OPTS() {
37
- export MAVEN_OPTS=" ${MAVEN_OPTS:- $(${JBOSS_CONTAINER_JAVA_JVM_MODULE} / java-default-options)} "
37
+ export MAVEN_OPTS=" ${MAVEN_OPTS:- $(${JBOSS_CONTAINER_JAVA_JVM_MODULE} / java-default-options) -XX : MaxRAMPercentage=25.0 } "
38
38
}
39
39
40
40
function maven_init_var_MAVEN_ARGS() {
Original file line number Diff line number Diff line change 1
- @ubi9
2
1
Feature : OPENJDK-559 JVM Memory tests
3
2
3
+ @ubi9
4
4
Scenario : Check default JVM max heap configuration
5
5
Given container is started as uid 1000
6
6
Then container log should contain -XX:MaxRAMPercentage=80.0
7
7
8
+ @ubi9
8
9
Scenario : Check configured JVM max heap configuration
9
10
Given container is started with env
10
11
| variable | value |
11
12
| JAVA_MAX_MEM_RATIO | 90 .0 |
12
13
Then container log should contain -XX:MaxRAMPercentage=90.0
13
14
15
+ @ubi9
14
16
Scenario : Check default JVM initial heap configuration is unspecified
15
17
Given container is started as uid 1000
16
18
Then container log should not contain -XX:InitialRAMPercentage
17
19
And container log should not contain -Xms
20
+
21
+ # Not the runtime images
22
+ @ubi9/openjdk-11
23
+ @ubi9/openjdk-17
24
+ Scenario : Ensure Maven doesn't use MaxRAMPercentage=80
25
+ Given s2i build https://github.com/jboss-openshift/openshift-examples from spring-boot-sample-simple
26
+ Then s2i build log should match regex INFO Using MAVEN_OPTS.*-XX:MaxRAMPercentage=25.0$
You can’t perform that action at this time.
0 commit comments