作者 朱兆平

update: Dockerfile 升级为eclipse-temurin:8-jre-jammy

@@ -5,7 +5,7 @@ services: @@ -5,7 +5,7 @@ services:
5 container_name: cloud-usercenter-jenkins 5 container_name: cloud-usercenter-jenkins
6 image: wlpt2/cloud-user-center:latest 6 image: wlpt2/cloud-user-center:latest
7 environment: 7 environment:
8 - - JAVA_OPTS=-XX:+UseContainerSupport -XX:MaxRAMPercentage=50.0 -XX:+StartAttachListener -Djdk.attach.allowAttachSelf=true 8 + - JAVA_OPTS=-XX:+UseContainerSupport -XX:MaxRAMPercentage=50.0 -XX:+StartAttachListener -Djdk.attach.allowAttachSelf=true -Xms256m -Xmx512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m
9 volumes: 9 volumes:
10 - /home/wlpt/wlpt-cloud-userCenter/config:/config:ro 10 - /home/wlpt/wlpt-cloud-userCenter/config:/config:ro
11 ports: 11 ports:
@@ -15,8 +15,8 @@ services: @@ -15,8 +15,8 @@ services:
15 # volumes_from: 15 # volumes_from:
16 # - container:pinpoint-agent 16 # - container:pinpoint-agent
17 network_mode: host 17 network_mode: host
18 - mem_limit: 1g  
19 - mem_reservation: 512m 18 + mem_limit: 2g
  19 + mem_reservation: 1g
20 cpus: 2.0 20 cpus: 2.0
21 21
22 networks: 22 networks: