• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Port 4849 stuck/invisible?

 
Manny Garcia
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy,

I'm attempting to start an instance of a glassfish server immediately after I've (gracefully) stopped it. When I try to restart it I get the following error:
There is a process already using the admin port 4849 -- it probably is another instance of a GlassFish server.

The problem is I do a netstat looking for the process that owns that port and I can't find anything! I have to find a pid to kill so I can restart the server. Does anyone have any ideas?

Regards,

Manny
 
Henry Wong
author
Marshal
Pie
Posts: 21419
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Manny Garcia wrote:
I'm attempting to start an instance of a glassfish server immediately after I've (gracefully) stopped it. When I try to restart it I get the following error:
There is a process already using the admin port 4849 -- it probably is another instance of a GlassFish server.

The problem is I do a netstat looking for the process that owns that port and I can't find anything! I have to find a pid to kill so I can restart the server. Does anyone have any ideas?


With TCP, sometime it takes a few minutes before the operating system frees up the port. To solve this, you have two options. You can put in a delay between the kill of the process to the restart of the process -- hopefully, it will be enough time for the OS to free the port. Another option is to open the port with the REUSEADDR option -- or configure glassflish to use that option.

Henry
 
Manny Garcia
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried waiting it out, overnight and still the problem persisted. I tired about every permutation of a ps lookup I could and could find nothing referencing that port. Finally our IT guy gets back to me and says that they've been diddling with the hosts file on that machine and that requests to start glassfish might actually be going to another server where the same application is running, hence my inability to locate that port on this particular machine. He's going to mess with the hosts file and get back to me. If this works I intend to do violence to our IT guy.

I generally don't delve into this sort of thing, so I'm not sure if his explanation is bullsh*t or not. I'm a code monkey, so this has been a rather frustrating experience on the whole.

Regards,

Manny
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Manny Garcia wrote:I'm a code monkey, so this has been a rather frustrating experience on the whole.


No kidding. Don't you hate it when you have to become a network expert?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic