Re: Tomcat AutoDeploy Interval (Delay / Frequency)

2013-01-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Radek,

On 1/10/13 6:28 AM, Radek Szamrej wrote:
 Thank you for the great tip,
 
 with your help I was able to find it (and confirmed it works):
 
 To summarize:
 
 Setting for the Host in sever.xml is called
 backgroundProcessorDelay (value expressed in seconds)
 
 
 In server.xml:
 
 Host appBase=webapps autoDeploy=true ... 
 backgroundProcessorDelay=1
 
 It makes Tomcat to auto-redeploy using 1s interval.
 
 Problem solved.

Come on back when you find that your WAR file takes more than 1/2
second to scp/copy into place and you get broken deployments.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEAREIAAYFAlDwPDMACgkQ9CaO5/Lv0PAf5wCdEWIy3u8bbKjS9m6F63wyMZmA
yuAAoIEWAF0vO6lcF2+7z82RHq+bPFjq
=i+5u
-END PGP SIGNATURE-

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



Tomcat AutoDeploy Interval (Delay / Frequency)

2013-01-10 Thread Radek Szamrej
Hi,

I believe it's a generic Tomcat question:

How can I configure / modify AutoDeploy interval (delay / frequency).

It is taking too much time form WAR being copied until Tomcat recognizes it
and the application is redeployed / reinitialized.

I would preferably like to reduce this delay to under 1 second.

Tomcat 6.0.35; OS: Win7-64, JRE 1.6.x;

Best regards,
Radek


Re: Tomcat AutoDeploy Interval (Delay / Frequency)

2013-01-10 Thread Konstantin Kolinko
2013/1/10 Radek Szamrej rstechnol...@gmail.com:
 Hi,

 I believe it's a generic Tomcat question:

 How can I configure / modify AutoDeploy interval (delay / frequency).

 It is taking too much time form WAR being copied until Tomcat recognizes it
 and the application is redeployed / reinitialized.

 I would preferably like to reduce this delay to under 1 second.

 Tomcat 6.0.35; OS: Win7-64, JRE 1.6.x;


Autodeployment is performed by background thread of a Host. See its
configuration reference if you want to tune its delays. By default it
runs every 10 seconds.

Instead of playing with the delays I'd suggest you to leverage either
the Manager application or JMX. The Manager app protects the webapp
that it uploads from being (auto)deployed too early and it triggers
its deployment immediately upon upload, not relying on autodeploy.

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



Re: Tomcat AutoDeploy Interval (Delay / Frequency)

2013-01-10 Thread Radek Szamrej
Thank you for the great tip,

with your help I was able to find it (and confirmed it works):

To summarize:

Setting for the Host in sever.xml is called backgroundProcessorDelay
(value expressed in seconds)


In server.xml:

Host appBase=webapps autoDeploy=true ...
backgroundProcessorDelay=1

It makes Tomcat to auto-redeploy using 1s interval.

Problem solved.

Best regards,
Radek



On Thu, Jan 10, 2013 at 12:16 PM, Konstantin Kolinko knst.koli...@gmail.com
 wrote:

 2013/1/10 Radek Szamrej rstechnol...@gmail.com:
  Hi,
 
  I believe it's a generic Tomcat question:
 
  How can I configure / modify AutoDeploy interval (delay / frequency).
 
  It is taking too much time form WAR being copied until Tomcat recognizes
 it
  and the application is redeployed / reinitialized.
 
  I would preferably like to reduce this delay to under 1 second.
 
  Tomcat 6.0.35; OS: Win7-64, JRE 1.6.x;
 

 Autodeployment is performed by background thread of a Host. See its
 configuration reference if you want to tune its delays. By default it
 runs every 10 seconds.

 Instead of playing with the delays I'd suggest you to leverage either
 the Manager application or JMX. The Manager app protects the webapp
 that it uploads from being (auto)deployed too early and it triggers
 its deployment immediately upon upload, not relying on autodeploy.

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




-- 
Best regards,
Radek