Are you sure it's killed? You may only have killed the parent process.  

Do a "ps -ef | grep java" to see it it's still running.

If you have "lsof" installed, try

        $ lsof -i | grep 10012

or just

        $ telnet localhost 10012

I'm not expert, but if the port is in use, then the process is still
running....

(For a good way of killing java more reliably, see perl Proc::Killfam which
can send a whole process family a signal)

Fergus
        




On Fri, Aug 16, 2002 at 09:51:23AM +0200, Eric Proust - Ifrance wrote:
> Hi All,
> 
> I'm using SocketServer as a central point of logging for all my apps.
> 
> I start the SocketServer on Solaris 2.8 as a background program.
> When I want to stop it, I use the 'kill' command.
> This works fine but when I'm not able to restart the SocketServer because
> the IP port has not been released !
> 
> Part of the log :
> ------------------------------------------------
> log4j: Finished configuring.
> 2002-08-16 08:27:43,125 org.apache.log4j.net.SocketServer
> org.apache.log4j.net.SocketServer  - Listening on port 10012
> java.net.BindException: Address already in use
>         at java.net.PlainSocketImpl.socketBind(Native Method)
>         at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:405)
>         at java.net.ServerSocket.<init>(ServerSocket.java:170)
>         at java.net.ServerSocket.<init>(ServerSocket.java:82)
>         at org.apache.log4j.net.SocketServer.main(SocketServer.java:97)
> -------------------------------------------------
> 
> Not that when I start the SocketServer as a foreground program,
> I have no problem because I stop it by sending a 'CTRL-C' command.
> 
> Thanks in advance for a solution.
> 
> Eric
> 
> 
> ______________________________________________________________________________
> Pour mieux recevoir vos emails, utilisez un PC plus performant !
> Dcouvrez la nouvelle gamme DELL en exclusivit sur i (france)
> http://www.ifrance.com/_reloc/signedell
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

-- 
Fergus Gallagher          Tel: +44 (20) 8742 1600
Orbis                     Fax: +44 (20) 8742 2649
414 Chiswick High Street  email: [EMAIL PROTECTED]
London  W4 5TL            Web: http://www.orbisuk.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to