• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how can i have a bind exception without anything holding the port?

 
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi..

on a redhat system we sometimes have a bind exception when an activemq tries to bind to a port.

however when we do a netstat -lntp we see that so such port is captured.

so how can that be?
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Elhanan Maayan wrote:
however when we do a netstat -lntp we see that so such port is captured.

so how can that be?




As an initial guess, I would say that the port is probably in use but not in the listening state. Perhaps you should do a netstat of the sockets in all the states, instead of just the ones in a listening state.

Henry
 
Elhanan Maayan
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you were right, it turns out another application server was using that port as outgoing to another oracle server on the same machine. so i guess the OS allocated that port to it (as it was brought up before us)

are there any range of ports which i'll know for sure the OS won't allocate them?
 
Henry Wong
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Elhanan Maayan wrote:
are there any range of ports which i'll know for sure the OS won't allocate them?



The ephemeral port range is configurable, so it may be different for each machine. Also, configuring the range is different for each OS type, so you will need to do a bit of research for your machine/OS combination. If you have lots of stuff running, which needs lots of connections to clients (ie. lots of application servers), it may be worth it to configure the port range, if only, to increase the number of available ports.

Henry
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic