性能指标修改

This commit is contained in:
2025-10-16 10:40:11 +08:00
parent 1c6412bb05
commit 005a5f25e1
7 changed files with 213 additions and 13 deletions

View File

@@ -1,8 +1,17 @@
@echo off
echo Stopping gateway2 service...
REM 强制终止匹配的Java进程
taskkill /f /im java.exe /fi "WINDOWTITLE eq *gateway2-0.0.1-SNAPSHOT.jar*" >nul 2>&1
taskkill /f /im javaw.exe /fi "WINDOWTITLE eq *gateway2-0.0.1-SNAPSHOT.jar*" >nul 2>&1
REM 第一步:找到 gateway2-0.0.1-SNAPSHOT.jar 对应的进程 IDPID
for /f "tokens=1" %%p in ('jps -l ^| findstr "gateway2-0.0.1-SNAPSHOT.jar"') do (
set PID=%%p
)
echo gateway2 service stopped.
REM 第二步:如果找到 PID就终止进程
if defined PID (
taskkill /f /pid %PID% >nul 2>&1
echo Killed process with PID: %PID%
) else (
echo gateway2 service is not running.
)
echo gateway2 service stopped.