On Fri, Mar 18, 2011 at 17:58, Christopher Schultz
<ch...@christopherschultz.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Francis,
>
> On 3/18/2011 6:16 AM, Francis GALIEGUE wrote:
>> I build my own CATALINA_HOME, the difference between the bundled
>> tar.gz and my home are:
>>
>> * no i18n jars;
>> * only the manager webapp, I don't need the others;
>> * changes in logging, I only use the consolehandler;
>> * Coyote connector only listens on localhost;
>> * I use my own startup scripts, and the java command line is as such:
>
> That's a waste of time for you. Instead, use a CATALINA_BASE with a
> custom bin/setenv.sh script to set JAVA_OPTS.
>

Beauty hides in the eye of the beholder ;)

For one, the default startup and shutdown scripts won't account for
the time taken for the webapps to deploy: when you use startup.sh, the
script terminates after the initial bootstrap is done - I don't want
that. Similarly, the shutdown script won't wait until all webapps are
undeployed and you can end with a stranded JVM trying to shutdown
uncooperative webapps.

Second, I use Linux only and don't need the cygwin/as400/etc specific stuff.

Third, what if you want to do SNMP monitoring
(-Dcom.sun.management.snmp.port=xxx etc etc)? You can't with the
bundled scripts. Why? If you set JAVA_OPTS appropriately, these
JAVA_OPTS will also be used for shutdown... Which means you can't
shutdown at all: EADDRINUSE. Unless you arrange for different
JAVA_OPTS on startup and shutdown, which I don't need to do with my
scripts.

-- 
Francis Galiegue
ONE2TEAM
Ingénieur système
Mob : +33 (0) 683 877 875
Tel : +33 (0) 178 945 552
f...@one2team.com
40 avenue Raymond Poincaré
75116 Paris

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

Reply via email to