Commit dfb04f46 authored by Rustam Lotsmanenko (EPAM)'s avatar Rustam Lotsmanenko (EPAM)
Browse files

move jvm opts to env variable

parent 99a36234
Pipeline #120183 failed with stages
in 136 minutes and 47 seconds
......@@ -12,6 +12,7 @@ data:
PARTITION_HOST: "{{ .Values.data.partition_host }}"
SHARED_TENANT_NAME: "{{ .Values.data.shared_tenant_name }}"
SPRING_PROFILES_ACTIVE: "{{ .Values.data.spring_profiles_active }}"
_JAVA_OPTIONS: "{{ .Values.data.java_options }}"
{{- if not .Values.conf.on_prem_enabled }}
GOOGLE_AUDIENCES: "{{ .Values.data.google_audiences }}"
{{- end }}
......@@ -11,6 +11,7 @@ data:
# bootstrap
data_partition_id: ""
schema_host: "http://schema"
java_options: "-Xms512M -Xmx1024M -XX:+UseG1GC -XX:+UseStringDeduplication -XX:InitiatingHeapOccupancyPercent=45"
conf:
app_name: "schema"
configmap: "schema-config"
......
......@@ -2,7 +2,7 @@ data:
requests_cpu: "0.1"
requests_memory: "1G"
limits_cpu: "1"
limits_memory: "1G"
limits_memory: "1.5G"
bootstrap_limits_cpu: "0.2"
bootstrap_limits_memory: "200M"
bootstrap_image: ""
......
......@@ -7,4 +7,4 @@ ENV PROVIDER_NAME $PROVIDER_NAME
# Copy the jar to the production image from the builder stage.
COPY provider/schema-${PROVIDER_NAME}/target/os-schema-${PROVIDER_NAME}-*-spring-boot.jar schema.jar
# Run the web service on container startup.
CMD java -Xms1024M -Xmx1024M -XX:+UseG1GC -XX:+UseStringDeduplication -XX:InitiatingHeapOccupancyPercent=45 -Djava.security.egd=file:/dev/./urandom -Dserver.port=${PORT} -Dlog4j.formatMsgNoLookups=true -jar /app/schema.jar
CMD java -Djava.security.egd=file:/dev/./urandom -Dserver.port=${PORT} -Dlog4j.formatMsgNoLookups=true -jar /app/schema.jar
......@@ -15,9 +15,6 @@
# limitations under the License.
#
JAVA_HEAP_OPTS=-Xms1024M -Xmx1024M
JAVA_GC_OPTS=-XX:+UseG1GC -XX:+UseStringDeduplication -XX:InitiatingHeapOccupancyPercent=45
partition-auth-enabled=false
obmDriver=minio
osmDriver=postgres
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment