远程调试命令

java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5555 -Xms256m -Xmx1024m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/usr/local/logs/ -jar xxx.jar

要保证远程调试监听的端口是开放的

你可能感兴趣的:(远程调试命令)