Commit e7565284 authored by hubin's avatar hubin

修改内存占用

parent 548a79c3
...@@ -11,6 +11,7 @@ ADD ./auth-service/target/auth-0.0.1.jar /auth.jar ...@@ -11,6 +11,7 @@ ADD ./auth-service/target/auth-0.0.1.jar /auth.jar
ADD ./gateway-service/target/gateway-0.0.1.jar /gateway.jar ADD ./gateway-service/target/gateway-0.0.1.jar /gateway.jar
ADD ./governance/target/governance-0.0.1.jar /governance.jar ADD ./governance/target/governance-0.0.1.jar /governance.jar
ADD ./system/system-admin-service/target/system-admin-0.0.1.jar /system-admin.jar ADD ./system/system-admin-service/target/system-admin-0.0.1.jar /system-admin.jar
ADD ./account/account-service/target/account-service-0.0.1.jar /account.jar
ADD start.sh /start.sh ADD start.sh /start.sh
RUN chmod +x /start.sh RUN chmod +x /start.sh
......
...@@ -5,6 +5,7 @@ git pull ...@@ -5,6 +5,7 @@ git pull
mvn install mvn install
docker stop ltc-poc docker stop ltc-poc
docker rm ltc-poc
docker rmi ltc:latest docker rmi ltc:latest
docker build -t ltc . docker build -t ltc .
docker run -d --name ltc-poc -p 9999:8001 -m 2G ltc docker run -d --name ltc-poc -p 9999:8001 -m 8G ltc
#!/bin/bash #!/bin/bash
mkdir logs mkdir logs
nohup java -Xms50m -Xmx200m -jar /auth.jar >./logs/auth.log & nohup java -jar /auth.jar >./logs/auth.log &
nohup java -Xms50m -Xmx200m -jar /system-admin.jar >./logs/admin.log & nohup java -jar /system-admin.jar >./logs/admin.log &
nohup java -Xms50m -Xmx200m -jar /gateway.jar >./logs/gateway.log & nohup java -jar /gateway.jar >./logs/gateway.log &
nohup java -Xms50m -Xmx200m -jar /apply.jar >./logs/apply.log & nohup java -jar /apply.jar >./logs/apply.log &
nohup java -Xms50m -Xmx200m -jar /governance.jar >./logs/govwenanc.log & nohup java -jar /governance.jar >./logs/govwenanc.log &
nohup java -Xms50m -Xmx200m -jar /assessment.jar >./logs/assessment.log & nohup java -jar /assessment.jar >./logs/assessment.log &
nohup java -jar /account.jar >./logs/account.log &
while [[ true ]]; do while [[ true ]]; do
......
Markdown is supported
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