Re: environment-based properties files

2014-07-17 Thread Brandon M. Wagner, Triple Tech Inc.

 On Jul 17, 2014, at 3:54 PM, Toby Lazar tla...@capitaltg.com wrote:
 
 Hi,
 
 Say I have an application that uses a properties and/or XML file that
 changes per environment.  I'd like to create the WAR once and promote it
 from TES - STAGE - PROD without modification.  Is this approach sensible?
 Is there a recommended approach for externalizing it?  Is it safe to
 append a folder to common.loader in catalina.properties that contains the
 properties file and just exclude that file from the built WAR file?
 
 Thanks,
 
 Toby
 
 ***
  Toby Lazar
  Capital Technology Group
  Email: tla...@capitaltg.com
  Mobile: 646-469-5865
 ***

I have used a properties file per environment by placing it in the lib 
directory (since it's already in the class path). I still include a properties 
file in the .war but it looks for an external one in tomcat first. You can 
incorporate a checksum if you are worried about modifications to the properties 
file.
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat 7.0.54 Slow Unpack and Deploy

2014-07-16 Thread Brandon M. Wagner
I'm having an issue with Tomcat 7.0.54 on a Windows Server 2008 machine 
(8GB of RAM, Dual AMD Opteron 8 core CPUs 2.0Ghz) where the .WAR file is 
taking 45 minutes to an hour to unpack and deploy. I can unpack the same 
.WAR file on my development machine (Windows 7, 16GB of RAM, Intel i7 
870 2.93Ghz) in less than 2 minutes.


Something troubling I'm noticing on the production machine is that the 
CPU usage will hover at around 13%. I've tried setting affinity and 
priority, but still Tomcat is only using the 13% of the CPU.


Some more information about the production machine:
-It is disconnected from internet (only intranet access)
-It has been rebuilt because of the slow deployment issue (was on 
physical box with server 2003 same specs, now on VMWare instance with 2008)


Information about the .WAR file:
- .WAR is about 28MB
- expands to 260MB

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