Giter Site home page Giter Site logo

birdhousebuilder.recipe.tomcat's Introduction

birdhousebuilder.recipe.tomcat

Travis Build

Introduction

birdhousebuilder.recipe.tomcat is a Buildout recipe to install Apache Tomcat application server with Anaconda. This recipe is used by the Birdhouse project.

Usage

The recipe requires that Anaconda is already installed. You can use the buildout option anaconda-home to set the prefix for the anaconda installation. Otherwise the environment variable CONDA_PREFIX (variable is set when activating a conda environment) is used as conda prefix.

It installs the apache-tomcat package from a conda channel in a conda enviroment defined by CONDA_PREFIX. The intallation folder is given by the prefix buildout option. It deploys a Supervisor configuration in ${prefix}/etc/supervisor/conf.d/tomcat.conf. Supervisor can be started with ${prefix}/etc/init.d/supervisord start.

By default Tomcat will be available on http://localhost:8080/.

The recipe depends on birdhousebuilder.recipe.conda and birdhousebuilder.recipe.supervisor.

Supported options

This recipe supports the following options:

anaconda-home
Buildout option pointing to the root folder of the Anaconda installation. Default: $HOME/anaconda.
http_port
HTTP Port for Tomcat service. Default: 8080
Xms
Initial Java heap size: Default: 128m
Xmx
Maximum Java heap size: Default: 1024m
MaxPermSize
Maximum Java permanent heap size: Default: 128m
ncwms_password
Enable ncWMS2 admin web interface by setting a password: Default: disabled

Example usage

The following example buildout.cfg installs tomcat as a Supervisor service:

[buildout]
parts = tomcat

[tomcat]
recipe = birdhousebuilder.recipe.tomcat
http_port = 8080
Xms = 256m
Xmx = 2048m
MaxPermSize = 128m

birdhousebuilder.recipe.tomcat's People

Contributors

cehbrecht avatar

Watchers

David Huard avatar James Cloos avatar  avatar  avatar Trevor James Smith avatar Long Vu avatar Tom Landry avatar Nikolay Kadygrov avatar  avatar Francis Charette-Migneault avatar  avatar

birdhousebuilder.recipe.tomcat's Issues

Big initial memory overhead

With 512 MB initial heap memory allocated, there is quite some memory given away which might not be used at all. See catalina-wrapper.sh:

NORMAL="-d64 -Xmx2048m -Xms512m -server"

Running a Phoenix server, this service seems to take up the most memory by far. Can we just strip the Xms parameter (or is it required)?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.