Running many parallel instances

From TempusServa wiki
Revision as of 22:58, 3 July 2016 by old>Admin (→‎Saving memory)
Jump to navigation Jump to search

Preflight checklist

Before you go for a side-by-side setup please consider

  1. Examine possibilities to use Exclusive group data ownership
  2. Using docker containers

Adding more instances

Saving memory

Each application instance will consume 20 MB of PermGen memory (clasloader memory) if the document building functions are in use (approx. 5 mB instance if not). In order to reduce this amount to approx. 2 mB/application, all shared librarys could be moved to the webservers shared folder (Tomcat 6 is "lib").

This approach is only recommended if:

  • You are running no other applications on that particular webserver (can be done)
  • Sure that all applications will be using the same TS version

Move all .jar files from the war files /WEB-INF/lib folder, except for: p2eShared.jar.

The easy way to complete this this task is to rename the .war til .zip, move the files, and rename back to .war.