facebook

Tomcat restart error vs. manual stop and start

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 10 posts - 16 through 25 (of 25 total)
  • Author
    Posts
  • #260696 Reply

    Riyad Kalla
    Member

    Thank you for following up with your workaround for other folks that may be hitting this annoyance as well.

    #260778 Reply

    jcastell
    Member

    ME folks,

    I think you might want to put a small delay (5-10 seconds) into the server restart between the time the server is actually down and the call to start it again. Sometimes the OS needs a bit of time to clean up the IP listening ports the the app server opens up, and attempting to restart a server immediately after it was shutdown can lead to BindExceptions. I’ve seen it more than once, especially on Solaris and Win2K. Both of those OSes had default timeouts for listener ports that were not small.

    -jc

    #260872 Reply

    Riyad Kalla
    Member

    JC,
    Good point. I was able to reproduce the bind exceptions easily. I filed a bug about it, they do seems to be harmless though. Is this what the rest of you are seeing? Just scary messages in the console, but app server is still running fine?

    #260874 Reply

    jcastell
    Member

    Riyad,

    Actually, it’s been my experience that when an app server fails to open a listener, it’s usually hosed. Most don’t seem to have much retry logic in ’em. I’m certainly no Tomcat expert, so I won’t attempt a definitve response, but I’d guess that BindExceptions on startup are not recoverable. And a default Tomcat/JBoss server opens up about a billion ports when it fires up.

    -jc

    #260891 Reply

    Riyad Kalla
    Member

    JC,
    Could you try this locally? In my tests the odd thing is that I got it to throw BindExceptions right away, and each time I would try and access the different admin web application and other test applications and they worked fine (seemed harmless).

    Then I handed this off to a developer to fix, and he can’t reproduce BindExceptions to save his life for some reason. I’m trying to figure out the missing link here =/

    #260925 Reply

    jcastell
    Member

    Riyad,

    I restarted JBoss 4.0.4GA on my laptop running Windows XP SP2, and I got a slew of BindExceptions, then tried to access any webapp deployed on it. No luck. I just back blank pages, not even an HTTP 404 or 500. If it helps, it’s a pretty quick machine.

    -jc

    #260955 Reply

    Riyad Kalla
    Member

    Another developer on the team was able to reproduce it, it seems to be dependent on how long it takes the app server to shut down, as the re-start may occur before the previous shut-down is complete.

    #261239 Reply

    Riyad Kalla
    Member

    Just a heads up, this will be fixed in 5.0.3. We identified a race condition that can occur during a restart and fixed it.

    #261241 Reply

    jcastell
    Member

    Yeehah!

    #262448 Reply

    innogate
    Member

    Fixed for me with MyEclipse 5.1 / Eclipse 3.2.1

Viewing 10 posts - 16 through 25 (of 25 total)
Reply To: Tomcat restart error vs. manual stop and start

You must be logged in to post in the forum log in