This discussion is archived
2 Replies Latest reply: Dec 5, 2012 10:17 PM by muvvas RSS

How to clear network socket port 17005

800808 Newbie
Currently Being Moderated
Hi Solaris Experts,

I am wondering whether it is possible to clear a network socket port 17005 left by Apache Tomcat/6.0.20 after having to terminate it forcefully, since it has run away due to remote JDBC resource contention on another server. A normal Tomcat stop / shutdown proves ineffective from then on. This listening port below would hang around for quite some time before disappearing:
localhost.17005            *.*                0      0 49152      0 LISTEN
localhost.17005            *.*                0      0 49152      0 TIME_WAIT
This port would prevent Tomcat from starting up successfully again until it is clear, either by waiting for a minimum of 1/2 - 1hr or restarting the server altogether which affect other applications / users on a production server.

I am running jdk1.6.0_11, on SunOS ramble 5.10 Generic_139556-08 i86pc i386 i86pc.
Thanks a lot,
George
  • 1. Re: How to clear network socket port 17005
    bigdelboy Pro
    Currently Being Moderated
    797805 wrote:
    Hi Solaris Experts,

    I am wondering whether it is possible to clear a network socket port 17005 left by Apache Tomcat/6.0.20 after having to terminate it forcefully, since it has run away due to remote JDBC resource contention on another server. A normal Tomcat stop / shutdown proves ineffective from then on. This listening port below would hang around for quite some time before disappearing:
    localhost.17005            *.*                0      0 49152      0 LISTEN
    localhost.17005            *.*                0      0 49152      0 TIME_WAIT
    This port would prevent Tomcat from starting up successfully again until it is clear, either by waiting for a minimum of 1/2 - 1hr or restarting the server altogether which affect other applications / users on a production server.

    I am running jdk1.6.0_11, on SunOS ramble 5.10 Generic_139556-08 i86pc i386 i86pc.
    Thanks a lot,
    George
    I suspect something is handling on to this .... try something like this to detect what is:

    https://blogs.oracle.com/JoachimAndres/entry/solaris_which_process_is_bound1


    ( I also recall a magic 4 min wait number on similar situations, which is now down to 1 min, the timeout wait had something to do with 4 RFC's). But that is a 4 min max; not 1/2 hour.
  • 2. Re: How to clear network socket port 17005
    muvvas Explorer
    Currently Being Moderated
    u can also try with lsof tool ..if its installed on soalris

    lsof -i tcp
    lsof -i udp

    and verify whcih application opende that port

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points