Glassfish There Is a Process Already Using the Admin Port 4848

Glassfish There is a process already using the admin port 4848

Assuming you are running glassifhs under linux

1 - Check if glassfish is already runnig.

ps -ef |grep java

kill any process java relative to glassfish

2 - Check if the port 4848 is in use

netstat -nao |grep 4848

3 - Change the default port

Edit the file {glassfish_home}/config/asadminenv.conf

AS_ADMIN_PORT=4848

Glassfish Server start-domain domain1 won't start

your system using port 4848 that is why.
when glassfish starts its need three port numbers one for administrations, one for http applications other for https.

so in you system 4848 is already reserved by some program or server.

Or you can change default port number as per your need like below.
type in command prompt.

To change the HTTP port to 10080:

  • asadmin set server.http-service.http-listener.http-listener-1.port=10080

To change the HTTPS port to 10443:

  • asadmin set server.http-service.http-listener.http-listener-2.port=10443

To change the administration server port to 14848:

  • asadmin set server.http-service.http-listener.admin-listener.port=14848

Unable to start Glassfish 3.1 even though port not occupied

First of all check the $HOSTNAME and the etc/hosts file configuration , not try to find a problem with ps aux or netstat -aon .

> echo $HOSTNAME

response > server (or etc)

> cat /etc/hosts

in response if you cannot see "$HOSTNAME" after 127.0.0.1 then add it end of the string .
Try again to execute the start-domain command.

Glassfish is running in background

Try this

taskkill /F /PID 9116

Also find the PIDs of processes which hold port 8080 and kill them. (If above solution don't work)

netstat -aon | find "LISTENING" | find ":8080"
taskkill /F /PID process_id_here

How to kill all glassfish instances

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.

GlassFish 5.0 exception and port 4848 not responding

GlassFish 5.0 not starting on JDK 9 is a known issue.

GlassFish 5.0 is certified only on JDK 8 (u144) as stated in the release notes:
https://javaee.github.io/glassfish/doc/5.0/release-notes.pdf



Related Topics



Leave a reply



Submit