[Unit] Description=Advisor Server After=network.target [Service] User=root WorkingDirectory=/root ExecStart=/usr/bin/java -Xms2g -Xmx2g -XX:+UseG1GC -jar /root/AdvisorServer-2.6.7.jar --spring.profiles.active=prod Restart=always StandardOutput=append:/root/advisor_server.log StandardError=append:/root/advisor_server.log LimitNOFILE=8192 RestartSec=120 StartLimitInterval=600 StartLimitBurst=5 TimeoutStartSec=300 MemoryMax=3G CPUQuota=200% [Install] WantedBy=multi-user.target