#!/bin/bash
cd "$(dirname "$0")"

echo "尝试方式1: 标准启动（无javaagent）"
java -jar -Xms1024m -Xmx2048m AliPack.jar 2>&1 | head -20

echo ""
echo "尝试方式2: 带javaagent启动"
java -javaagent:AliPack.jar -jar -Xms1024m -Xmx2048m AliPack.jar 2>&1 | head -20

echo ""
echo "尝试方式3: 带密码参数启动"
java -javaagent:AliPack.jar -jar -Dapp.password=PG53719 -Xms1024m -Xmx2048m AliPack.jar 2>&1 | head -20
