开发者

How to kill a glassfish server in Windows?

I tried to start 开发者_如何学Pythona glassfishv3 server in my windows XP system with the command "asadmin start-domain". The start failed due to a timeout. When I try to start again I get an error saying that the port 4848 is allready in use by another process. When I try to stop the server with "asadmin stop-domain" I get the error that it is not running.

Any idea how to solve this deadlock? I cannot find a Windows process with the name glassfish or asadmin to kill.


The process will be java.exe

You can use one of the sysinternals tools, like tcpview.exe for example to see which program is actually using that port.


Adding to Alexis' answer,

jps -v

will show you more about the java processes. Note the pid. You must have configured your path correctly for this to work.

Then do

taskkill /pid <pid>


You can also use jps to list all the Java processes on you machine. The GlassFish server main class is called ASMain

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜