Category: Deployment & Configuration

Load balancing tomcat with Apache

In some circumstances, it is mandatory to deploy your application on multiple tomcat instances instead of a single one, this usually happens when working with a heavy application which consumes a big amount of memory storage and has a big number of active users. The main advantage of using multiple instances is to distribute the requests and the load on...

Configure tomcat memory usage

By default, the memory size allocated for tomcat is not enough to handle heavy applications which require high memory usage, several OutOfMemoryError exceptions will be thrown if you keep the default tomcat configuration. In order to set the appropriate heap size and perm gen size, tomcat requires a file named as setenv.sh in unix environments and setenv.bat in windows. This file is not included in the...

Step-by-step guide for installing tomcat on unix

Here below we provide a step-by-step guide for installing and setting up tomcat in unix environment, for those who are interested in windows machines you can refer to this guide. 1. Prerequisite Tomcat doesn’t work without java, so before installing tomcat on the machine, you should install a compatible java runtime version and setup JAVA_HOME environment variable. Both java and tomcat versions should...

Step-by-step guide for installing tomcat on windows

Tomcat is an open source java application server provided by Apache, it is the most popular application server for java environment. In this article we provide a step-by-step guide for installing and setting up tomcat in windows environment,  for those who are interested in unix machines you can refer to this guide. 1. Prerequisite Tomcat doesn’t work without java, so before installing...