1、windows 下面获得pid
netstat -aontasklist | more
2、windows下面获取 java进程pid
wmic process where caption="java.exe" get processid,caption,commandline /value