Skip to content

Instantly share code, notes, and snippets.

@terrancesnyder
terrancesnyder / run.sh
Created May 22, 2011 23:37
./run.sh - Tomcat Multi-Instance Run Shell Script (run.sh) Based on Springsource
#!/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 23:48
./server.sh - Tomcat Multi-Instance Run Shell Script (server.sh) Based on Springsource for init.d
#! /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 00:07
./setenv.sh - example setenv.sh with defaults set for minimal time spent in garbage collection
#! /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 00:14
/etc/init.d/tomcat
#! /bin/sh
# ==================================================================
# ______ __
# /_ __/___ ____ ___ _________ _/ /_
# / / / __ \/ __ `__ \/ ___/ __ `/ __/
# / / / /_/ / / / / / / /__/ /_/ / /_
#/_/ \____/_/ /_/ /_/\___/\__,_/\__/
# Based On:
# http://www.springsource.com/files/uploads/tomcat/tomcatx-performance-tuning.pdf
@terrancesnyder
terrancesnyder / provision.sh
Created May 24, 2011 21:47
provision.sh - Means of provisioning a new tomcat instance.
#!/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 21:56
logging.properties - default logging.properties for shared use in tomcat
# ==================================================================
# ______ __ _____
# /_ __/___ ____ ___ _________ _/ /_ /__ /
# / / / __ \/ __ `__ \/ ___/ __ `/ __/ / /
# / / / /_/ / / / / / / /__/ /_/ / /_ / /
#/_/ \____/_/ /_/ /_/\___/\__,_/\__/ /_/
# 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 21:57
jmxremote.access - file used to control JMX remote access for tomcat
<youruser> [readonly|readwrite]
@terrancesnyder
terrancesnyder / jmxremote.password
Created May 24, 2011 21:58
jmxremote.password - password file used to protect JMX exposed by tomcat
<yourusername> <yourpassword>
@terrancesnyder
terrancesnyder / provision.sh.man
Created May 24, 2011 22:07
provision.sh.man - man page describing the provision.sh file
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 13:29
./ephemeral-x.sh selenium headless on linux
#!/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=