Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to kill all glassfish instances

Can anyone tell me how to kill a Glassfish instance using the port 4848 and 8080.

I installed Glassfish, and found that the Glassfish installation isn't working properly, so deleted all the Glassfish files from my ubuntu machine with stopping the Glassfish server (./asadmin stop-domain).

Now I downloaded other Glassfish version (nightly build 5.0, because JDBC MySQL doesn't work) and tried to start the server (./asadmin start-domain). I get the following error.

There is a process already using the admin port 4848 -- it probably is another instance of a GlassFish server.

like image 407
Július Marko Avatar asked Mar 05 '16 17:03

Július Marko


People also ask

How do you kill a GlassFish server?

Right-click the GlassFish Server instance and select Start. To stop the GlassFish Server using NetBeans IDE, right-click the GlassFish Server instance and select Stop.

How do you kill GlassFish in Windows?

For Microsoft Windows, you can use an alternate method to stop a domain. From the Start menu, select the command for your distribution of GlassFish Server: If you are using the Full Platform, select Programs -> Oracle GlassFish Server -> Stop Admin Server.

How can I tell if GlassFish is running on Windows?

In the Services window, expand the Servers node.If a green arrow icon appears on the GlassFish V2 node, the server is running.


1 Answers

Can anyone tell me how to kill a Glassfish instance using the port 4848 and 8080.

There is probably running only one instance of Glassfish on this ports, but you can kill it like this:

pkill -f glassfish

If you don't have a root shell you might have to use sudo in front of the cmd.

like image 187
unwichtich Avatar answered Sep 21 '22 06:09

unwichtich