You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dean Chester <de...@googlemail.com> on 2009/12/01 21:58:26 UTC

Safe to move tomcat directory while tomcat running?

Hi,
I have to move the tomcat directory with in my user and i ask is it safe if
i do it while tomcat is running as i need to avoid downtime of my
application.
Thanks in Advance
Dean

Re: Safe to move tomcat directory while tomcat running?

Posted by Anirban Talukdar <ta...@gmail.com>.
Without stopping the JVM you want to change the files that the JVM is using?
I wonder. Hopefully, you can copy the files to another location, if the
application dont have any open inputstream. But the JVM current execution
path will not change if you donot restart it.

Thanks & Regards
Anirban Talukdar

On Wed, Dec 2, 2009 at 2:28 AM, Dean Chester
<de...@googlemail.com>wrote:

> Hi,
> I have to move the tomcat directory with in my user and i ask is it safe if
> i do it while tomcat is running as i need to avoid downtime of my
> application.
> Thanks in Advance
> Dean
>

RE: Safe to move tomcat directory while tomcat running?

Posted by "Looijmans, Mike" <mi...@oce.com>.
On unix (posix, linux) systems you can move anything even when in use.
Files that are open will remain open, and the application will continue
to use them. Problems will arise when the application attempts to open
new files, because then they have to be at the expected location.

If you really want zero downtime, you can set up softlinks to make the
program believe that everything is still in its old location during the
transition phase.

On the other hand, if you prepare it well, you can stop, move and start
in a matter of seconds, and most users will never notice it was down.
And the risk of the whole thing crashing down because of some
peculiarity in the application due to the unexpected move is probably
big enough to want to avoid that situation.

M.

> -----Original Message-----
> From: Dean Chester [mailto:dean.g.chester@googlemail.com] 
> Sent: dinsdag 01 december 2009 22:08
> To: Tomcat Users List
> Subject: Re: Safe to move tomcat directory while tomcat running?
> 
> I would be doing it on red hat. Would it just be easier to 
> email all the users and say its down for maintenance and then 
> just move it?
> Dean
> 
> On Tue, Dec 1, 2009 at 9:02 PM, David kerber 
> <dc...@verizon.net> wrote:
> 
> > Dean Chester wrote:
> >
> >> Hi,
> >> I have to move the tomcat directory with in my user and i 
> ask is it 
> >> safe if i do it while tomcat is running as i need to avoid 
> downtime 
> >> of my application.
> >> Thanks in Advance
> >> Dean
> >>
> >>
> > I doubt you would even be able to do so, at least not in Windows.
> >
> >
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
> 

This message and attachment(s) are intended solely for use by the addressee and may contain information that is privileged, confidential or otherwise exempt from disclosure under applicable law.

If you are not the intended recipient or agent thereof responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.

If you have received this communication in error, please notify the sender immediately by telephone and with a 'reply' message.

Thank you for your co-operation.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Safe to move tomcat directory while tomcat running?

Posted by Dean Chester <de...@googlemail.com>.
I would be doing it on red hat. Would it just be easier to email all the
users and say its down for maintenance and then just move it?
Dean

On Tue, Dec 1, 2009 at 9:02 PM, David kerber <dc...@verizon.net> wrote:

> Dean Chester wrote:
>
>> Hi,
>> I have to move the tomcat directory with in my user and i ask is it safe
>> if
>> i do it while tomcat is running as i need to avoid downtime of my
>> application.
>> Thanks in Advance
>> Dean
>>
>>
> I doubt you would even be able to do so, at least not in Windows.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Safe to move tomcat directory while tomcat running?

Posted by David kerber <dc...@verizon.net>.
Dean Chester wrote:
> Hi,
> I have to move the tomcat directory with in my user and i ask is it safe if
> i do it while tomcat is running as i need to avoid downtime of my
> application.
> Thanks in Advance
> Dean
> 

I doubt you would even be able to do so, at least not in Windows.




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Safe to move tomcat directory while tomcat running?

Posted by Dean Chester <de...@googlemail.com>.
Ok i will turn tomcat off then move the directory.
Dean

On Tue, Dec 1, 2009 at 9:30 PM, Peter Crowther
<pe...@melandra.com>wrote:

> 2009/12/1 Dean Chester <de...@googlemail.com>:
> > Ok thanks what i meant is that the tomcat directory is in
> > ~/tomcat6/apache-tomcat-6.0.20/ and i need to move it to my home
> directory
> > ~/. Basically was it safe to do it while tomcat is still running.
>
> No, that is not safe.  Tomcat may access any file in a webapp at any
> time, plus files in its work area.
>
> - Peter
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Safe to move tomcat directory while tomcat running?

Posted by Peter Crowther <pe...@melandra.com>.
2009/12/1 Dean Chester <de...@googlemail.com>:
> Ok thanks what i meant is that the tomcat directory is in
> ~/tomcat6/apache-tomcat-6.0.20/ and i need to move it to my home directory
> ~/. Basically was it safe to do it while tomcat is still running.

No, that is not safe.  Tomcat may access any file in a webapp at any
time, plus files in its work area.

- Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Safe to move tomcat directory while tomcat running?

Posted by Dean Chester <de...@googlemail.com>.
Ok thanks what i meant is that the tomcat directory is in
~/tomcat6/apache-tomcat-6.0.20/ and i need to move it to my home directory
~/. Basically was it safe to do it while tomcat is still running.

On Tue, Dec 1, 2009 at 9:12 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: Dean Chester [mailto:dean.g.chester@googlemail.com]
> > Subject: Safe to move tomcat directory while tomcat running?
> >
> > I have to move the tomcat directory with in my user and i ask is it
> > safe if i do it while tomcat is running as i need to avoid downtime
> > of my application.
>
> Generally, no, you can't do that - if your not-quite-English question has
> been understood.  It all depends on what you mean by "move the tomcat
> directory with in my user".  Even renaming the directory may cause problems.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

RE: Safe to move tomcat directory while tomcat running?

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Dean Chester [mailto:dean.g.chester@googlemail.com]
> Subject: Safe to move tomcat directory while tomcat running?
> 
> I have to move the tomcat directory with in my user and i ask is it
> safe if i do it while tomcat is running as i need to avoid downtime
> of my application.

Generally, no, you can't do that - if your not-quite-English question has been understood.  It all depends on what you mean by "move the tomcat directory with in my user".  Even renaming the directory may cause problems.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org