Re: Tips needed: restarting tomcat without risk of java.net.BindException

2007-04-02 Thread Filip Hanik - Dev Lists
its an asynchronous call, all shutdown.sh does, is connect to the shutdown port and issue the shutdown command, when shutdown.sh returns, there is no guarantee that the java process has been shutdown, that depends on the webapplications installed Filip brycenesbitt wrote: Odd. I call shutdow

Re: Tips needed: restarting tomcat without risk of java.net.BindException

2007-04-02 Thread brycenesbitt
Odd. I call shutdown and start in the same thread (so shutdown completes before the startup happens). AFIK, shutdown actually does shut down the java process. If shutdown is not meant to shut down the java process, what does it do? Filip Hanik - Dev Lists wrote: > > the problem you are havin

Re: Tips needed: restarting tomcat without risk of java.net.BindException

2007-03-30 Thread Filip Hanik - Dev Lists
the problem you are having is because you didn't shutdown the java process. invoking shutdown.sh when your tomcat instance has suffered a memoryleak doesn't guarantee that it will stop, or how long it takes to stop it. you must ensure the process is killed properly Filip Bryce Nesbitt wrote:

Re: Tips needed: restarting tomcat without risk of java.net.BindException

2007-03-30 Thread brycenesbitt
We've recently had a related problem. When tomcat can't bind to port 6135, it binds to the next port up, 6136. Unfortunately that's a totally different application. Is there a way to: 1) Have Tomcat not bump the port number up. 2) Have Tomcat retry a particular port until it's available. Unfo

Re: Tips needed: restarting tomcat without risk of java.net.BindException

2006-11-17 Thread Mikolaj Rydzewski
Bryce Nesbitt wrote: Do we have to wait at least 20 seconds to be sure the port is clear? The easiest thing is to do 'killall -9 java' ;-) I run Tomcat under its own account. And restart script looks like this: #!/bin/sh ~/bin/shutdown.sh sleep 10 killall -9 java ~/bin/startup.sh There's n