Define -XX:MaxRAMPercentage in babel 99/138899/2 1.13.4
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Wed, 4 Sep 2024 14:49:17 +0000 (16:49 +0200)
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Fri, 6 Sep 2024 06:50:53 +0000 (08:50 +0200)
- define MaxRAMPercentage and set it to 60 percent [0]
- bump snapshot versino

[0] the default RAM utilisation of jdk 11 is 25%
Issue-ID: AAI-3985
Change-Id: I6fe9f72b332b7a1974691b2b9b32e4e9095db629
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
pom.xml
src/main/bin/start.sh
version.properties

diff --git a/pom.xml b/pom.xml
index 4f76eeb..b5b2f6a 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -33,7 +33,7 @@
 
        <groupId>org.onap.aai</groupId>
        <artifactId>babel</artifactId>
-       <version>1.13.3-SNAPSHOT</version>
+       <version>1.13.4-SNAPSHOT</version>
        <packaging>jar</packaging>
 
        <name>aai-babel</name>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-surefire-plugin</artifactId>
-                               <version>3.0.0-M4</version>
+                               <version>3.0.0-M8</version>
                                <configuration>
                                        <!-- Sets the VM argument line used when unit tests are run. -->
                                        <reuseForks>false</reuseForks>
index d68d6c8..4d9912d 100644 (file)
@@ -53,6 +53,8 @@ if [ ! -z "$SERVER_CERTS_LOCATION" ]; then
 fi
 PROPS="${PROPS} -Dspring.profiles.active=${SPRING_PROFILES_ACTIVE}"
 PROPS="${PROPS} -Daaf.cadi.file=${CONFIG_HOME}/cadi.properties"
+PROPS="${PROPS} -Daaf.cadi.file=${CONFIG_HOME}/cadi.properties"
 
-exec java ${JVM_OPTS} ${PROPS} -jar ${APP_HOME}/babel*.jar
+JVM_OPTS="${JVM_OPTS} -XX:MaxRAMPercentage=${MAX_RAM_PERCENTAGE:-60}"
 
+exec java ${JVM_OPTS} ${PROPS} -jar ${APP_HOME}/babel*.jar
index 776da6a..798f495 100644 (file)
@@ -4,7 +4,7 @@
 
 major=1
 minor=13
-patch=3
+patch=4
 
 base_version=${major}.${minor}.${patch}