Re: Safe to move tomcat directory while tomcat running?

2009-12-01 Thread David kerber

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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Safe to move tomcat directory while tomcat running?

2009-12-01 Thread Dean Chester
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 dcker...@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-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Safe to move tomcat directory while tomcat running?

2009-12-01 Thread Dean Chester
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.caldar...@unisys.com wrote:

  From: Dean Chester [mailto:dean.g.ches...@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-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




Re: Safe to move tomcat directory while tomcat running?

2009-12-01 Thread Peter Crowther
2009/12/1 Dean Chester dean.g.ches...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Safe to move tomcat directory while tomcat running?

2009-12-01 Thread Dean Chester
Ok i will turn tomcat off then move the directory.
Dean

On Tue, Dec 1, 2009 at 9:30 PM, Peter Crowther
peter.crowt...@melandra.comwrote:

 2009/12/1 Dean Chester dean.g.ches...@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-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




RE: Safe to move tomcat directory while tomcat running?

2009-12-01 Thread Looijmans, Mike
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.ches...@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 
 dcker...@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-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Safe to move tomcat directory while tomcat running?

2009-12-01 Thread Anirban Talukdar
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
dean.g.ches...@googlemail.comwrote:

 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