Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Stop Tomcat from the Servers tab
Stop Tomcat from the Servers tab [message #228023] Thu, 19 February 2009 09:49 Go to next message
manuf is currently offline manufFriend
Messages: 3
Registered: July 2009
Junior Member
Hi all,

Lately, that square red button that allows you to stop Tomcat in the
Servers tab has become unusable.
Before, when Tomcat didn't stop properly the first time I pushed the
button in question, I could always push it another time to force a stop.
But lately, when I press the button the first time, it shades and doesn't
allow another press, so if it's the case that Tomcat does not stop, I've
to force it from the task manager.

I'm using Tomcat 5.5 and Ganymede.

Thanks in advance and sorry for my English.
Re: Stop Tomcat from the Servers tab [message #228034 is a reply to message #228023] Thu, 19 February 2009 14:02 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1310
Registered: July 2009
Senior Member
manuf wrote:
>
> Hi all,
>
> Lately, that square red button that allows you to stop Tomcat in the
> Servers tab has become unusable.
> Before, when Tomcat didn't stop properly the first time I pushed the
> button in question, I could always push it another time to force a stop.
> But lately, when I press the button the first time, it shades and
> doesn't allow another press, so if it's the case that Tomcat does not
> stop, I've to force it from the task manager.
>
> I'm using Tomcat 5.5 and Ganymede.
>
> Thanks in advance and sorry for my English.
>
>

If you switch to the Debug perspective or open the Debug view, what does
the Debug view show for the Java Tomcat process. It is terminated or
still running?

Cheers,
Larry
Re: Stop Tomcat from the Servers tab [message #228042 is a reply to message #228034] Thu, 19 February 2009 15:08 Go to previous messageGo to next message
manuf is currently offline manufFriend
Messages: 3
Registered: July 2009
Junior Member
Larry Isaacs wrote:

> If you switch to the Debug perspective or open the Debug view, what does
> the Debug view show for the Java Tomcat process. It is terminated or
> still running?

Before hitting the button, there is one [Apache Tomcat] process. When I
hit the stop button another one appears, but dies inmediatly (exit value
0). The first one still runs until I kill it with the task manager (or
wait until eclipse shows its "Terminate Server" popup and press OK)

Thanks!
Re: Stop Tomcat from the Servers tab [message #228049 is a reply to message #228042] Thu, 19 February 2009 15:51 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1310
Registered: July 2009
Senior Member
manuf wrote:
> Larry Isaacs wrote:
>
>> If you switch to the Debug perspective or open the Debug view, what
>> does the Debug view show for the Java Tomcat process. It is
>> terminated or still running?
>
> Before hitting the button, there is one [Apache Tomcat] process. When I
> hit the stop button another one appears, but dies inmediatly (exit value
> 0). The first one still runs until I kill it with the task manager (or
> wait until eclipse shows its "Terminate Server" popup and press OK)
>
> Thanks!
>

The other process is the one that tells Tomcat to shutdown. Tomcat is
getting the message to shutdown. However, be aware that Tomcat will
wait forever for webapps to fully clean up. Especially terminating any
non-daemon threads the webapp creates. If a webapp fails to do this,
Tomcat won't finish shutting down. The "Terminate Server" popup WTP's
answer to this behavior. To avoid this behavior you have to fix the
webapp. You are welcome to run the server in Debug mode and see what
threads remain after Tomcat is requested to shutdown. Unfortunately,
finding and fixing the actual cause can be difficult.

Cheers,
Larry
Re: Stop Tomcat from the Servers tab [message #228057 is a reply to message #228049] Thu, 19 February 2009 17:09 Go to previous message
manuf is currently offline manufFriend
Messages: 3
Registered: July 2009
Junior Member
Larry Isaacs wrote:

> The other process is the one that tells Tomcat to shutdown. Tomcat is
> getting the message to shutdown.
Understood.

> However, be aware that Tomcat will
> wait forever for webapps to fully clean up. Especially terminating any
> non-daemon threads the webapp creates.
Ok. This one I alredy knew because the application I'm working on has
never terminated properly (at least since I'm here). My curiosity is out
of the fact that, in the past, I could push the stop button a second time,
while now it appears disabled after the first time.

> To avoid this behavior you have to fix the
> webapp. You are welcome to run the server in Debug mode and see what
> threads remain after Tomcat is requested to shutdown. Unfortunately,
> finding and fixing the actual cause can be difficult.
:-) And shame on us for not having done it before, but the time margins
are always so small...

Thanks again (did I apologize for my English alredy?)
Previous Topic:Axis web services versus "non-axis"
Next Topic:Re: Foregrownd color issue at "=" sign
Goto Forum:
  


Current Time: Thu Nov 27 05:51:03 GMT 2014

Powered by FUDForum. Page generated in 0.01708 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software