Activities

September 2014
M T W T F S S
« Aug   Oct »
1234567
891011121314
15161718192021
22232425262728
2930  

Glassfish 3 : There is a process already using the admin port 4848

When I migrated my glassfish server to new server I got the flowing error.

[root@QA02]# /var/glassfish-QA/bin/asadmin start-domain domain1
There is a process already using the admin port 4848 -- it probably is another instance of a GlassFish server.
Command start-domain failed.

I tried killing all the java process by executing this command “killall -9 java” and ensure that no java process is being run on the server.

Problem

The DNS record of hostname does not resolving any IP. This cause to get such errors while starting Glasssfish server.

Fix

Edit “/etc/hosts” file and add loopback IP address associate with the hostname record in it.

[root@QA02]# cat/etc/hostname
QA02  127.0.0.1
[root@QA02 osgi-cache]# vi /etc/hosts
[root@QA02 osgi-cache]# hostname
QA02
[root@QA02]# vi /etc/hosts
[root@QA02]# /var/glassfish-QA/bin/asadmin start-domain domain1
Waiting for  QA - domain1 to start ....................................
Successfully started the domain : domain1
domain  Location: /var/glassfish-QA/domains/domain1
Log File: /var/glassfish-QA/domains/domain1/logs/server.log
Admin Port: 4848
Command start-domain executed successfully.
[root@QA02]#

1 comment to Glassfish 3 : There is a process already using the admin port 4848

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>