|
1 |
| -@openjdk |
2 |
| -@redhat-openjdk-18 |
3 |
| -@ubi8 |
4 | 1 | Feature: OPENJDK-559 JVM Memory tests
|
5 | 2 |
|
| 3 | + @ubi8 |
6 | 4 | Scenario: Check default JVM max heap configuration
|
7 | 5 | Given container is started as uid 1000
|
8 | 6 | Then container log should contain -XX:MaxRAMPercentage=80.0
|
9 | 7 |
|
| 8 | + @ubi8 |
10 | 9 | Scenario: Check configured JVM max heap configuration
|
11 | 10 | Given container is started with env
|
12 | 11 | | variable | value |
|
13 | 12 | | JAVA_MAX_MEM_RATIO | 90.0 |
|
14 | 13 | Then container log should contain -XX:MaxRAMPercentage=90.0
|
15 | 14 |
|
| 15 | + @ubi8 |
16 | 16 | Scenario: Check default JVM initial heap configuration is unspecified
|
17 | 17 | Given container is started as uid 1000
|
18 | 18 | Then container log should not contain -XX:InitialRAMPercentage
|
19 | 19 | And container log should not contain -Xms
|
20 | 20 |
|
| 21 | + @ubi8 |
21 | 22 | Scenario: Check configured JVM max heap configuration
|
22 | 23 | Given container is started with env
|
23 | 24 | | variable | value |
|
24 | 25 | | JAVA_INITIAL_MEM_RATIO | 25.0 |
|
25 | 26 | Then container log should contain -XX:InitialRAMPercentage=25.0
|
26 | 27 |
|
| 28 | + @ubi8 |
27 | 29 | Scenario: check JAVA_MAX_INITIAL_MEM overrides JAVA_INITIAL_MEM_RATIO
|
28 | 30 | Given container is started with env
|
29 | 31 | | variable | value |
|
30 | 32 | | JAVA_INITIAL_MEM_RATIO | 25.0 |
|
31 | 33 | | JAVA_MAX_INITIAL_MEM | 4096m |
|
32 | 34 | Then container log should contain -Xms4096m
|
33 | 35 | And container log should not contain -XX:InitialRAMPercentage=25.0
|
| 36 | + |
| 37 | + # Not the runtime images |
| 38 | + @ubi8/openjdk-8 |
| 39 | + @ubi8/openjdk-11 |
| 40 | + @ubi8/openjdk-17 |
| 41 | + Scenario: Ensure Maven doesn't use MaxRAMPercentage=80 |
| 42 | + Given s2i build https://github.com/jboss-openshift/openshift-examples from spring-boot-sample-simple |
| 43 | + Then s2i build log should match regex INFO Using MAVEN_OPTS.*-XX:MaxRAMPercentage=25.0$ |
0 commit comments