When "There is a process already using the admin port 4848", but it is not true

When you try to start Payara 5 / GlassFish with:

asadmin start-domain

...and you get the following error:

There is a process already using the admin port 4848 -- it could be another instance of Payara Server or Payara Micro. Command start-domain failed.

although there is no running Java process and the port is not occupied, you hostname is probably not pingable:

ping $(hostname)

output: Request timeout


Add the following line to the /etc/hosts file: [YOUR_NOT_PINGABLE_HOSTNAME]

See you at Java EE Workshops at Munich Airport, Terminal 2 or Virtual Dedicated Workshops / consulting. Is Munich's airport too far? Learn from home: airhacks.io.


It works for me :)

Posted by THANKS on January 01, 2019 at 05:16 PM CET #

Thanks alot, Adam. That saved me.

Posted by ThankYou on February 21, 2019 at 06:16 PM CET #

Hi, I have set already the "/etc/hosts" with the localhost IP, but the problem still. I tried change the default 4848 port but with the new port (4949) is the same error. Maybe are another thing that I need consider? thanks a lot

Posted by Gabriel on August 02, 2019 at 12:43 PM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
...the last 150 posts
...the last 10 comments