@echo off
if "%1"=="h" goto begin
start mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit
:begin
for /f "usebackq skip=1 tokens=*" %%I in (`wmic process where "name = 'java.exe' and commandline like '%%bzgt.jar%%'" get processid 2^>null`) do (
echo %%I
if %%I GTR 1 (
echo processid is: %%I
set pid=%%I
goto break1
)
)
:break1
if defined pid (
echo pid = %pid%
echo taskkill /f /pid %pid%
taskkill /f /pid %pid%
echo Succeeded in killing the bzgt.jar process.
) else echo The bzgt.jar process does not exit.
start java -Xms2g -Xmx2g -Xmn1g -Xloggc:D:\servers\logs\bzgt_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -jar D:\servers\bzgt.jar > D:\servers\logs\bzgt.log 2>&1 &
for /f "usebackq skip=1 tokens=*" %%I in (`wmic process where "name = 'java.exe' and commandline like '%%dailyliq.jar%%'" get processid 2^>null`) do (
echo %%I
if %%I GTR 1 (
echo processid is: %%I
set pid=%%I
goto break2
)
)
:break2
if defined pid (
echo pid = %pid%
echo taskkill /f /pid %pid%
taskkill /f /pid %pid%
echo Succeeded in killing the dailyliq.jar process.
) else echo The dailyliq.jar process does not exit.
start java -Xms16g -Xmx16g -Xmn8g -Xloggc:D:\servers\logs\dailyliq_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -jar D:\servers\dailyliq.jar > D:\servers\logs\dailyliq.log 2>&1 &
for /f "usebackq skip=1 tokens=*" %%I in (`wmic process where "name = 'java.exe' and commandline like '%%liqx.jar%%'" get processid 2^>null`) do (
echo %%I
if %%I GTR 1 (
echo processid is: %%I
set pid=%%I
goto break3
)
)
:break3
if defined pid (
echo pid = %pid%
echo taskkill /f /pid %pid%
taskkill /f /pid %pid%
echo Succeeded in killing the liqx.jar process.
) else echo The liqx.jar process does not exit.
start java -Xms2g -Xmx2g -Xmn1g -Xloggc:D:\servers\logs\liqx_gc.log -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M -jar D:\servers\liqx.jar > D:\servers\logs\liqx.log 2>&1 &
pause