Posts Under 'Tomcat'

Java Open Source Caching Solutions

1. OSCache – OSCache is a caching solution that includes a JSP tag library and set of classes to perform fine grained dynamic caching of JSP content, servlet responses or arbitrary objects. It provides both in memory and persistent on disk caches, and can allow your site to have graceful error tolerance (eg if an […]

Read more »


Apache Tomcat monitor for OutofMemory Errors and other errors

Monitor4Tomcat – is a set of scripts that can be used to restart Tomcat when exceptions or other errors have occurred in the application. These scripts can help your Apache Tomcat application to continue to run in the face of OutOfMemory exceptions or other un-expected exceptions. The script will check for OutOfMemory exceptions in the […]

Read more »


File upload using Java

First download Apache Jakarta Commons FileUpload library from this link and add into classpath of your Application. Validate HTTP Request Now that you have installed the FileUpload library, you can start writing the code. First, we have to make sure the HTTP request is encoded in multipart format. This can be done using the static […]

Read more »


How to install Tomcat Administration apps

1. To download tomcat admin apps click here and unzip or untar the file containing the administration web app files and do following. 2. Go to the location apache-tomcat-5.5.28-admin\apache-tomcat-5.5.28\conf\Catalina\localhost and move admin.xml to C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\Catalina\localhost 3. Go to the location “apache-tomcat-5.5.28-admin\apache-tomcat-5.5.28\server\webapps\” and copy admin folder to C:\Program Files\Apache Software Foundation\Tomcat 5.5\server\webapps 4. […]

Read more »


How to Increase Heap Size for Tomcat + Windows

Tomcat can be installed in two different ways and below is the information about how to increase or set the heap size for tomcat server in both scenarios – 1. Folder installation – Create one new environment variable JAVA_OPTS – Set following value -Xms256m -Xmx512m – instead of 256m and 512m , you can enter […]

Read more »