IOT-3159 69/26769/1
authorOndrej Tomcik <ondrej.tomcik@kistler.com>
Mon, 26 Mar 2018 09:11:25 +0000 (11:11 +0200)
committerPeter Rafaj <peter.rafaj@kistler.com>
Tue, 14 Aug 2018 08:10:35 +0000 (10:10 +0200)
Change-Id: Idc5979942cbd7e2cba56c5bb07cdcfd6cddf069b
Signed-off-by: Peter Rafaj <peter.rafaj@kistler.com>
cloud/account/Dockerfile
cloud/interface/Dockerfile
cloud/messagequeue/Dockerfile
cloud/resourcedirectory/Dockerfile

index a4d5177..ae7bd9e 100644 (file)
@@ -11,4 +11,18 @@ ENV TLS_MODE 0
 ENV MONGODB_ADDRESS mongodb
 ENV MONGODB_PORT 27017
 
-ENTRYPOINT ["java", "-jar", "AccountServer.jar"]
\ No newline at end of file
+
+ENV JMX_PORT 9002
+ENV JAVA_JMX_OPTS "-Dcom.sun.management.jmxremote \
+               -Dcom.sun.management.jmxremote.port=${JMX_PORT} \
+               -Dcom.sun.management.jmxremote.rmi.port=${JMX_PORT} \
+               -Dcom.sun.management.jmxremote.local.only=false \
+               -Dcom.sun.management.jmxremote.authenticate=false \
+               -Dcom.sun.management.jmxremote.ssl=false \
+               -Djava.rmi.server.hostname= \
+               -XX:MetaspaceSize=30m -XX:MaxMetaspaceSize=40m \
+               -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -server "
+
+EXPOSE 9002
+
+ENTRYPOINT exec java $JAVA_JMX_OPTS $JAVA_MEMOTY_OPTS -jar AccountServer.jar
index 1a1984c..fcb20e4 100644 (file)
@@ -15,4 +15,17 @@ ENV RESOURCE_DIRECTORY_PORT 5684
 ENV ACCOUNT_SERVER_ADDRESS iotivity-accountserver
 ENV ACCOUNT_SERVER_PORT 5685
 
-ENTRYPOINT ["java", "-jar", "CloudInterface.jar"]
\ No newline at end of file
+ENV JMX_PORT 9001
+ENV JAVA_JMX_OPTS "-Dcom.sun.management.jmxremote \
+                -Dcom.sun.management.jmxremote.port=${JMX_PORT} \
+                -Dcom.sun.management.jmxremote.rmi.port=${JMX_PORT} \
+                -Dcom.sun.management.jmxremote.local.only=false \
+                -Dcom.sun.management.jmxremote.authenticate=false \
+                -Dcom.sun.management.jmxremote.ssl=false \
+                -Djava.rmi.server.hostname= \
+                -XX:MetaspaceSize=20m -XX:MaxMetaspaceSize=25m \
+                -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -server "
+
+EXPOSE 9001
+
+ENTRYPOINT exec java $JAVA_JMX_OPTS $JAVA_MEMOTY_OPTS -jar CloudInterface.jar
index 61e4818..cff8457 100644 (file)
@@ -12,4 +12,17 @@ ENV ZOOKEEPER_PORT 2181
 ENV KAFKA_ADDRESS kafka-zookeeper
 ENV KAFKA_PORT 9092
 
-ENTRYPOINT ["java", "-jar", "MessageQueue.jar"]
\ No newline at end of file
+ENV JMX_PORT 9003
+ENV JAVA_JMX_OPTS "-Dcom.sun.management.jmxremote \
+               -Dcom.sun.management.jmxremote.port=${JMX_PORT} \
+               -Dcom.sun.management.jmxremote.rmi.port=${JMX_PORT} \
+               -Dcom.sun.management.jmxremote.local.only=false \
+               -Dcom.sun.management.jmxremote.authenticate=false \
+               -Dcom.sun.management.jmxremote.ssl=false \
+               -Djava.rmi.server.hostname= \
+               -XX:MetaspaceSize=20m -XX:MaxMetaspaceSize=25m \
+               -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -server "
+
+EXPOSE 9003
+
+ENTRYPOINT exec java $JAVA_JMX_OPTS $JAVA_MEMOTY_OPTS -jar MessageQueue.jar
index d778ea4..0625df2 100644 (file)
@@ -10,4 +10,17 @@ ENV TLS_MODE 0
 ENV MONGODB_ADDRESS mongodb
 ENV MONGODB_PORT 27017
 
-ENTRYPOINT ["java", "-jar", "ResourceDirectory.jar"]
\ No newline at end of file
+ENV JMX_PORT 9004
+ENV JAVA_JMX_OPTS "-Dcom.sun.management.jmxremote \
+               -Dcom.sun.management.jmxremote.port=${JMX_PORT} \
+               -Dcom.sun.management.jmxremote.rmi.port=${JMX_PORT} \
+               -Dcom.sun.management.jmxremote.local.only=false \
+               -Dcom.sun.management.jmxremote.authenticate=false \
+               -Dcom.sun.management.jmxremote.ssl=false \
+               -Djava.rmi.server.hostname= \
+               -XX:MetaspaceSize=20m -XX:MaxMetaspaceSize=25m \
+               -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -server "
+
+EXPOSE 9004
+
+ENTRYPOINT exec java $JAVA_JMX_OPTS $JAVA_MEMOTY_OPTS -jar ResourceDirectory.jar