Skip to content

Commit 321fee6

Browse files
authored
MOSIP-39589: Added ZGC (#1041)
* Added ZGC Signed-off-by: dhanendra06 <[email protected]> * Added ZGC Signed-off-by: dhanendra06 <[email protected]> * Added name, description and url for pom Signed-off-by: dhanendra06 <[email protected]> --------- Signed-off-by: dhanendra06 <[email protected]>
1 parent 90ee8f9 commit 321fee6

File tree

7 files changed

+20
-40
lines changed

7 files changed

+20
-40
lines changed

cache-provider-hazelcast/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
<groupId>io.mosip.cacheprovider</groupId>
88
<artifactId>cache-provider-hazelcast</artifactId>
99
<version>1.2.1-SNAPSHOT</version>
10+
<name>cache-provider-hazelcast</name>
11+
<description>cache-provider-hazelcast</description>
12+
<url>https://github.com/mosip/mosip-ref-impl</url>
1013
<licenses>
1114
<license>
1215
<name>MPL 2.0</name>

cache-provider-redis/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
<groupId>io.mosip.cacheprovider</groupId>
88
<artifactId>cache-provider-redis</artifactId>
99
<version>1.2.1-SNAPSHOT</version>
10+
<name>cache-provider-redis</name>
11+
<description>cache-provider-redis</description>
12+
<url>https://github.com/mosip/mosip-ref-impl</url>
1013
<licenses>
1114
<license>
1215
<name>MPL 2.0</name>

pre-registration-booking-service/Dockerfile

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -83,18 +83,7 @@ USER ${container_user_uid}:${container_user_gid}
8383

8484
EXPOSE 9095
8585

86-
CMD if [ "$is_glowroot_env" = "present" ]; then \
87-
wget -q --show-progress "${artifactory_url_env}"/artifactory/libs-release-local/io/mosip/kernel/kernel-ref-idobjectvalidator/kernel-ref-idobjectvalidator.jar "${loader_path_env}"/kernel-ref-idobjectvalidator.jar ; \
88-
wget "${artifactory_url_env}"/artifactory/libs-release-local/io/mosip/testing/glowroot.zip ; \
89-
unzip glowroot.zip ; \
90-
rm -rf glowroot.zip ; \
91-
sed -i 's/<service_name>/pre-registration-booking-service/g' glowroot/glowroot.properties ; \
86+
CMD wget -q --show-progress "${artifactory_url_env}"/artifactory/libs-release-local/io/mosip/kernel/kernel-ref-idobjectvalidator/kernel-ref-idobjectvalidator.jar "${loader_path_env}"/kernel-ref-idobjectvalidator.jar ; \
9287
wget "${iam_adapter_url_env}" -O "${loader_path_env}"/kernel-auth-adapter.jar; \
93-
java -Dloader.path="${loader_path_env}" -jar -javaagent:glowroot/glowroot.jar -Dspring.cloud.config.label="${spring_config_label_env}" -Dspring.profiles.active="${active_profile_env}" -Dspring.cloud.config.uri="${spring_config_url_env}" pre-registration-booking-service.jar ; \
94-
else \
95-
wget -q --show-progress "${artifactory_url_env}"/artifactory/libs-release-local/io/mosip/kernel/kernel-ref-idobjectvalidator/kernel-ref-idobjectvalidator.jar "${loader_path_env}"/kernel-ref-idobjectvalidator.jar ; \
96-
wget "${iam_adapter_url_env}" -O "${loader_path_env}"/kernel-auth-adapter.jar; \
97-
java -Dloader.path="${loader_path_env}" -jar -Dspring.cloud.config.label="${spring_config_label_env}" -Dspring.profiles.active="${active_profile_env}" -Dspring.cloud.config.uri="${spring_config_url_env}" pre-registration-booking-service.jar ; \
98-
fi
99-
100-
#CMD ["java","-Dloader.path=/kernel-ref-idobjectvalidator-0.9.1.jar","-jar","-Dspring.cloud.config.label=${spring_config_label_env}","-Dspring.profiles.active=${active_profile_env}","-Dspring.cloud.config.uri=${spring_config_url_env}","pre-registration-booking-service.jar"]
88+
java -XX:-UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:-UseParallelGC -XX:+UseZGC -XX:+ZGenerational -XX:-UseShenandoahGC -XX:MaxGCPauseMillis=200 -Xms1g -Xmx2g -XX:+UnlockExperimentalVMOptions -XX:+UseStringDeduplication -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseCompressedOops \
89+
-Dloader.path="${loader_path_env}" -Dspring.cloud.config.label="${spring_config_label_env}" -Dspring.profiles.active="${active_profile_env}" -Dspring.cloud.config.uri="${spring_config_url_env}" -jar pre-registration-booking-service.jar ; \

registration-processor/registration-processor-external-integration-service/Dockerfile

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,5 @@ RUN chown -R ${container_user}:${container_user} /home/${container_user}
9393
# select container user for all tasks
9494
USER ${container_user_uid}:${container_user_gid}
9595

96-
CMD if [ "$is_glowroot_env" = "present" ]; then \
97-
wget "${artifactory_url_env}"/artifactory/libs-release-local/io/mosip/testing/glowroot.zip ; \
98-
unzip glowroot.zip ; \
99-
rm -rf glowroot.zip ; \
100-
sed -i 's/<service_name>/registration-processor-external-integration-service/g' glowroot/glowroot.properties ; \
101-
java -Dspring.cloud.config.label="${spring_config_label_env}" -Dspring.profiles.active="${active_profile_env}" -Dspring.cloud.config.uri="${spring_config_url_env}" -jar -javaagent:glowroot/glowroot.jar registration-processor-external-integration-service.jar ; \
102-
else \
103-
java -Dspring.cloud.config.label="${spring_config_label_env}" -Dspring.profiles.active="${active_profile_env}" -Dspring.cloud.config.uri="${spring_config_url_env}" -jar registration-processor-external-integration-service.jar ; \
104-
fi
105-
106-
#CMD ["java","-Dspring.cloud.config.label=${spring_config_label_env}","-Dspring.profiles.active=${active_profile_env}","-Dspring.cloud.config.uri=${spring_config_url_env}","-jar","registration-processor-external-integration-service.jar"]
96+
CMD java -XX:-UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:-UseParallelGC -XX:+UseZGC -XX:+ZGenerational -XX:-UseShenandoahGC -XX:MaxGCPauseMillis=200 -Xms1g -Xmx2g -XX:+UnlockExperimentalVMOptions -XX:+UseStringDeduplication -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseCompressedOops \
97+
-Dspring.cloud.config.label="${spring_config_label_env}" -Dspring.profiles.active="${active_profile_env}" -Dspring.cloud.config.uri="${spring_config_url_env}" -jar registration-processor-external-integration-service.jar ; \

registration-processor/registration-processor-external-integration-service/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
</parent>
1010
<artifactId>registration-processor-external-integration-service</artifactId>
1111
<version>1.2.1-SNAPSHOT</version>
12+
<name>registration-processor-external-integration-service</name>
13+
<description>registration-processor-external-integration-service</description>
14+
<url>https://github.com/mosip/mosip-ref-impl</url>
1215
<licenses>
1316
<license>
1417
<name>MPL 2.0</name>

registration-processor/registration-processor-external-stage/Dockerfile

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -94,18 +94,6 @@ RUN chown -R ${container_user}:${container_user} /home/${container_user}
9494
# select container user for all tasks
9595
USER ${container_user_uid}:${container_user_gid}
9696

97-
CMD if [ "$is_glowroot_env" = "present" ]; then \
98-
wget "${iam_adapter_url_env}" -O "${loader_path_env}"/kernel-auth-adapter.jar; \
99-
wget "${artifactory_url_env}"/artifactory/libs-release-local/io/mosip/testing/glowroot.zip ; \
100-
apt-get update && apk add -q unzip wget ; \
101-
unzip glowroot.zip ; \
102-
rm -rf glowroot.zip ; \
103-
sed -i 's/<service_name>/registration-processor-external-stage/g' glowroot/glowroot.properties ; \
104-
java -Dspring.cloud.config.label="${spring_config_label_env}" -Dspring.profiles.active="${active_profile_env}" -Dspring.cloud.config.uri="${spring_config_url_env}" -jar -javaagent:glowroot/glowroot.jar registration-processor-external-stage.jar ; \
105-
else \
106-
wget "${iam_adapter_url_env}" -O "${loader_path_env}"/kernel-auth-adapter.jar; \
107-
java -Dspring.cloud.config.label="${spring_config_label_env}" -Dspring.profiles.active="${active_profile_env}" -Dspring.cloud.config.uri="${spring_config_url_env}" -jar registration-processor-external-stage.jar ; \
108-
fi
109-
110-
111-
#CMD ["java","-Dspring.cloud.config.label=${spring_config_label_env}","-Dspring.profiles.active=${active_profile_env}","-Dspring.cloud.config.uri=${spring_config_url_env}","-jar","registration-processor-external-stage.jar"]
97+
CMD wget "${iam_adapter_url_env}" -O "${loader_path_env}"/kernel-auth-adapter.jar; \
98+
java -XX:-UseG1GC -XX:+ExplicitGCInvokesConcurrent -XX:-UseParallelGC -XX:+UseZGC -XX:+ZGenerational -XX:-UseShenandoahGC -XX:MaxGCPauseMillis=200 -Xms1g -Xmx2g -XX:+UnlockExperimentalVMOptions -XX:+UseStringDeduplication -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseCompressedOops \
99+
-Dspring.cloud.config.label="${spring_config_label_env}" -Dspring.profiles.active="${active_profile_env}" -Dspring.cloud.config.uri="${spring_config_url_env}" -jar registration-processor-external-stage.jar ; \

registration-processor/registration-processor-external-stage/pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131

3232
<artifactId>registration-processor-external-stage</artifactId>
3333
<version>1.2.1-SNAPSHOT</version>
34+
<name>registration-processor-external-stage</name>
35+
<description>registration-processor-external-stage</description>
36+
<url>https://github.com/mosip/mosip-ref-impl</url>
3437

3538
<properties>
3639
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

0 commit comments

Comments
 (0)