Skip to content

Instantly share code, notes, and snippets.

@terrancesnyder
terrancesnyder / run.sh
Created May 22, 2011
./run.sh - Tomcat Multi-Instance Run Shell Script (run.sh) Based on Springsource
View run.sh
#!/bin/bash
# ==================================================================
# ______ __ _____
# /_ __/___ ____ ___ _________ _/ /_ /__ /
# / / / __ \/ __ `__ \/ ___/ __ `/ __/ / /
# / / / /_/ / / / / / / /__/ /_/ / /_ / /
#/_/ \____/_/ /_/ /_/\___/\__,_/\__/ /_/
# Multi-instance Apache Tomcat installation with a focus
# on best-practices as defined by Apache, SpringSource, and MuleSoft
@terrancesnyder
terrancesnyder / server.sh
Created May 22, 2011
./server.sh - Tomcat Multi-Instance Run Shell Script (server.sh) Based on Springsource for init.d
View server.sh
#! /bin/sh
# ==================================================================
# ______ __ _____
# /_ __/___ ____ ___ _________ _/ /_ /__ /
# / / / __ \/ __ `__ \/ ___/ __ `/ __/ / /
# / / / /_/ / / / / / / /__/ /_/ / /_ / /
#/_/ \____/_/ /_/ /_/\___/\__,_/\__/ /_/
# Multi-instance Apache Tomcat installation with a focus
# on best-practices as defined by Apache, SpringSource, and MuleSoft
@terrancesnyder
terrancesnyder / setenv.sh
Created May 23, 2011
./setenv.sh - example setenv.sh with defaults set for minimal time spent in garbage collection
View setenv.sh
#! /bin/sh
# ==================================================================
# ______ __ _____
# /_ __/___ ____ ___ _________ _/ /_ /__ /
# / / / __ \/ __ `__ \/ ___/ __ `/ __/ / /
# / / / /_/ / / / / / / /__/ /_/ / /_ / /
#/_/ \____/_/ /_/ /_/\___/\__,_/\__/ /_/
# Multi-instance Apache Tomcat installation with a focus
# on best-practices as defined by Apache, SpringSource, and MuleSoft
@terrancesnyder
terrancesnyder / tomcat.sh
Created May 23, 2011
/etc/init.d/tomcat
View tomcat.sh
#! /bin/sh
# ==================================================================
# ______ __
# /_ __/___ ____ ___ _________ _/ /_
# / / / __ \/ __ `__ \/ ___/ __ `/ __/
# / / / /_/ / / / / / / /__/ /_/ / /_
#/_/ \____/_/ /_/ /_/\___/\__,_/\__/
# Based On:
# http://www.springsource.com/files/uploads/tomcat/tomcatx-performance-tuning.pdf
@terrancesnyder
terrancesnyder / provision.sh
Created May 24, 2011
provision.sh - Means of provisioning a new tomcat instance.
View provision.sh
#!/bin/bash
# ==================================================================
# ______ __ _____
# /_ __/___ ____ ___ _________ _/ /_ /__ /
# / / / __ \/ __ `__ \/ ___/ __ `/ __/ / /
# / / / /_/ / / / / / / /__/ /_/ / /_ / /
#/_/ \____/_/ /_/ /_/\___/\__,_/\__/ /_/
# Multi-instance Apache Tomcat installation with a focus
# on best-practices as defined by Apache, SpringSource, and MuleSoft
@terrancesnyder
terrancesnyder / logging.properties
Created May 24, 2011
logging.properties - default logging.properties for shared use in tomcat
View logging.properties
# ==================================================================
# ______ __ _____
# /_ __/___ ____ ___ _________ _/ /_ /__ /
# / / / __ \/ __ `__ \/ ___/ __ `/ __/ / /
# / / / /_/ / / / / / / /__/ /_/ / /_ / /
#/_/ \____/_/ /_/ /_/\___/\__,_/\__/ /_/
# Multi-instance Apache Tomcat installation with a focus
# on best-practices as defined by Apache, SpringSource, and MuleSoft
# and enterprise use with large-scale deployments.
@terrancesnyder
terrancesnyder / jmxremote.access
Created May 24, 2011
jmxremote.access - file used to control JMX remote access for tomcat
View jmxremote.access
<youruser> [readonly|readwrite]
@terrancesnyder
terrancesnyder / jmxremote.password
Created May 24, 2011
jmxremote.password - password file used to protect JMX exposed by tomcat
View jmxremote.password
<yourusername> <yourpassword>
@terrancesnyder
terrancesnyder / provision.sh.man
Created May 24, 2011
provision.sh.man - man page describing the provision.sh file
View provision.sh.man
NAME
provision.sh - script that will provision a new tomcat instance
SYNOPSIS
provision.sh [create|delete] [port]
DESCRIPTION
The program is useful for creating or deleting instances of a tomcat
on a specific port following SpringSource recommendations.
@terrancesnyder
terrancesnyder / ephemeral-x.sh
Created May 27, 2011
./ephemeral-x.sh selenium headless on linux
View ephemeral-x.sh
#!/bin/sh
# Start an ephemeral X server.
#
# This is useful for when you want to lauch an X server for a specific
# process. When that process exits, the X server will be killed.
#
XSERVER=Xvfb
WINMGR=