You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by dumm y <du...@gmail.com> on 2004/11/04 09:54:07 UTC
Remotely restart Tomcat.
Hi all
Is there a way to hit the admin or something so that I can
restart Tomcat remotely? I am using Struts and the only way I
know to get things going again after changing the
struts-config.xml file is to restart Tomcat. Can't just restart
my web app.
Help!
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Remotely restart Tomcat.
Posted by Christoph Kutzinski <ku...@gmx.de>.
There are some postings on this issue on the tomcat mailing list.
I just found one bookmark:
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg137021.html
Thomas Kellerer wrote:
> On 04.11.2004 12:49 Christoph Kutzinski wrote:
>
>
>>AFAIk this is generally disrecommended in production environments since
>>there are some memory leaks in Tomcat/Struts (which are seemingly very
>>hard or impossible to fix) regarding webapp restart.
>>
>>The recommended way is to shut down and restart tomcat.
>>
>>For a develop environment webapp restart is ok.
>>
>>HTH
>>Christoph
>>
>
> Do you have any reference (documents, links) for this?
>
> Thomas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Remotely restart Tomcat.
Posted by Daniel Perry <d....@netcase.co.uk>.
I too have found this problem. I dont entirely understand it myself, but I
was told that when you restart / stop-start a webapp tomcat has to create
new classloaders - and the old classloaders are orphaned and are not cleaned
up during garbage collection, so you basically get a memory leak. In my
experience the size of the leak depends on the complexity of the program -
ie a struts app using dozens of libraries (itext, fop, ojb, quartz, axis,
jdom, xerces, etc) will cause a bigger memory leak that a tiny servlet using
no libraries.
I dont think the problem is tomcat specific - ie i believe it affects other
servlet containers aswell.
So, using remote shell access to restart tomcat saves a lot of trouble.
Daniel.
> -----Original Message-----
> From: news [mailto:news@sea.gmane.org]On Behalf Of Thomas Kellerer
> Sent: 04 November 2004 12:33
> To: user@struts.apache.org
> Subject: Re: Remotely restart Tomcat.
>
>
> On 04.11.2004 12:49 Christoph Kutzinski wrote:
>
> > AFAIk this is generally disrecommended in production environments since
> > there are some memory leaks in Tomcat/Struts (which are seemingly very
> > hard or impossible to fix) regarding webapp restart.
> >
> > The recommended way is to shut down and restart tomcat.
> >
> > For a develop environment webapp restart is ok.
> >
> > HTH
> > Christoph
> >
> Do you have any reference (documents, links) for this?
>
> Thomas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Remotely restart Tomcat.
Posted by Thomas Kellerer <sp...@gmx.net>.
On 04.11.2004 12:49 Christoph Kutzinski wrote:
> AFAIk this is generally disrecommended in production environments since
> there are some memory leaks in Tomcat/Struts (which are seemingly very
> hard or impossible to fix) regarding webapp restart.
>
> The recommended way is to shut down and restart tomcat.
>
> For a develop environment webapp restart is ok.
>
> HTH
> Christoph
>
Do you have any reference (documents, links) for this?
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Remotely restart Tomcat.
Posted by Christoph Kutzinski <ku...@gmx.de>.
AFAIk this is generally disrecommended in production environments since
there are some memory leaks in Tomcat/Struts (which are seemingly very
hard or impossible to fix) regarding webapp restart.
The recommended way is to shut down and restart tomcat.
For a develop environment webapp restart is ok.
HTH
Christoph
Philip DONAGHY wrote:
> You may also be interested in the manager which can start or stop
> specific web applications.
>
> http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html
>
> You have to edit $CATALINA_HOME/conf/tomcat-users.xml and add a user to
> use it.
>
> Donaghy
>
> dumm y a écrit :
>
>>Hi all
>>
>> Is there a way to hit the admin or something so that I can
>> restart Tomcat remotely? I am using Struts and the only way I
>> know to get things going again after changing the
>> struts-config.xml file is to restart Tomcat. Can't just restart
>> my web app.
>>
>> Help!
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>For additional commands, e-mail: user-help@struts.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Remotely restart Tomcat.
Posted by Daniel Perry <d....@netcase.co.uk>.
What OS are you using?
I use ssh to log into our linux servers and restart tomcat that way.
Can also be done using telnet into windows.
Daniel.
> -----Original Message-----
> From: Philip DONAGHY [mailto:Philip.DONAGHY@thales-is.com]
> Sent: 04 November 2004 11:32
> To: Struts Users Mailing List
> Subject: Re: Remotely restart Tomcat.
>
>
> You may also be interested in the manager which can start or stop
> specific web applications.
>
> http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html
>
> You have to edit $CATALINA_HOME/conf/tomcat-users.xml and add a user to
> use it.
>
> Donaghy
>
> dumm y a écrit :
> >
> > Hi all
> >
> > Is there a way to hit the admin or something so that I can
> > restart Tomcat remotely? I am using Struts and the only way I
> > know to get things going again after changing the
> > struts-config.xml file is to restart Tomcat. Can't just restart
> > my web app.
> >
> > Help!
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Remotely restart Tomcat.
Posted by Philip DONAGHY <Ph...@thales-is.com>.
You may also be interested in the manager which can start or stop
specific web applications.
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/manager-howto.html
You have to edit $CATALINA_HOME/conf/tomcat-users.xml and add a user to
use it.
Donaghy
dumm y a écrit :
>
> Hi all
>
> Is there a way to hit the admin or something so that I can
> restart Tomcat remotely? I am using Struts and the only way I
> know to get things going again after changing the
> struts-config.xml file is to restart Tomcat. Can't just restart
> my web app.
>
> Help!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Remotely restart Tomcat.
Posted by Peng Tuck <pe...@bluebottle.com>.
There's a ant task for this kind of things :P
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/deployer-howto.html#Deploying%20on%20a%20running%20Tomcat%20server
Should work for you.
dumm y wrote:
>Hi all
>
> Is there a way to hit the admin or something so that I can
> restart Tomcat remotely? I am using Struts and the only way I
> know to get things going again after changing the
> struts-config.xml file is to restart Tomcat. Can't just restart
> my web app.
>
> Help!
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org