Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Some instructions are given here for installing tomcat, and making it run as a service. You should ensure that any installation meets with your company standards.

Installing on windows

Run the tomcat installation programFollow these instructions.

Installing on unix/ linux

...

Code Block
languagexml
<session-config>
	<session-timeout>720</session-timeout>
</session-config>

Java and JVM Options

Download and install Java from java.com. Java JDK 1.8 is required (and version 1.8.0_74 or greater is recommended). Also install Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files from http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html (required for reading password protected Excel files). The following JVM (Java Virtual Machine) options should be set to control (amongst other things) the amount of memory reserved for Tomcat and therefore made available for PhixFlow. The options are:

...

Option

...

Recommended Setting

...

Syntax

...

Initial Memory Pool

...

1024Mb on 32bit architecture. 40% of physical memory on x64 architecture. Consult your sys admin for recommended settings on virtual servers.

...

-Xms1024m

...

Max Memory Pool

...

As much as possible. 1024Mb on 32bit architecture. 75% of physical memory on x64 architecture. Consult your sys admin for recommended settings on virtual servers.

...

-Xmx1024m

...

Garbage Collector Diagnostics

...

Enabled

...

-verbose:gc

...

Some JDBC (database) drivers generate warning messages direct to the screen if running under a GUI (graphical user interface).

These messages are confusing at best for a background service such as the PhixFlow web application server, and should be disabled.

This setting tells Java to behave as though there were no GUI present.

...

To set JVM options:

...

Windows

  • Run the Tomcat Monitor
  • Open the Tomcat Monitor system tray Configure … menu
  • Select the Java tab
  • Set the Initial memory Pool (see table above)
  • Set the Max Memory Pool (see table above)
  • Add the following lines to the Java Options scrollable field:
Code Block
-Xms1024m
-Xmx1024m
-verbose:gc
-Djava.awt.headless=true

...

Unix/Linux

If you have installed the scripts in tomcat login scripts, these option will already be set however for clarity, these options are defined in the JAVA_OPTS environment variable set in the tomcat user’s shell startup file (e.g. .profile / .bash_profile / .cshrc in the user’s home directory – the actual startup file is determined by the user’s default shell settings).

Code Block
JAVA_OPTS='-Xms1024m -Xmx1024m -verbose:gc -Djava.awt.headless=true'

Supplied Web Applications

Tomcat Manager Webapp

The Manager Webapp is disabled by default.

Warning

Do not enable the Manager Webapp unless explicitly advised to do so by PhixFlow Support.

Database JDBC Drivers

The drivers needed to connect to PhixFlow’s own database are included within the release pack and no action is needed.

...

For information on using SQLServer with Integrated Authentication, see SQLServer Integrated Authentication.

Start Tomcat

To start Tomcat:

...

Windows

...

Run the Tomcat Monitor.

Click on Right mouse menu -> Start Service

...

Unix

Login to the unix server as user tomcat.

Code Block
languagebash
unix> cd $TOMCAT
unix> startup.sh

Make tomcat run as a service

Windows

  • Run the Tomcat Monitor.
  • Right click on the Apache Tomcat icon in the system tray and select Configure …
  • On the ‘General’ tab:
  • Set Startup Type to Automatic.

Unix/ Linux

As the root user, install the tomcat script listed in tomcat service scripts and create a soft link to it from the appropriate run-level directory. The actual run-level directories are specific to the particular unix variant.