Solved

Slow Tomcat Startup

Posted on 2013-06-12
2
1,307 Views
Last Modified: 2013-06-17
Hi

I am using Tomcat 7 on Centos 5.6 64 bit and using that for Jasper Reports integration Kit for Oracle Apex. The kit is available at http://www.opal-consulting.de/apex/f?p=20090928:5:0::NO:5::

The problem is when I add data source in the configuration file, Tomcat becomes very slow to startup. It works fine after that. I have about 15-20 datasources and tomcat is now taking over 6 minutes to startup.

Is there a way to make the startup fast without removing the datasources.
0
Comment
Question by:sysautomation
2 Comments
 
LVL 10

Accepted Solution

by:
Sam Simon Nasser earned 250 total points
ID: 39243538
check this (last post)
http://tomcat.10.x6.nabble.com/How-do-I-get-Tomcat-7-to-start-up-faster-in-Linux-CentOS-kernel-version-2-6-18-td4988784.html

Long DNS lookup timeouts coupled with huge numbers of URL lookups.
This can happen if you have lots of XML files being parsed and validated
against remote DTDs or Schemas. This is easily identified via a series
of thread dumps (you may be noticing a pattern, here).

Solutions: fix your DNS and/or use something like XML Catalog
(http://en.wikipedia.org/wiki/XML_Catalog).
0
 
LVL 20

Assisted Solution

by:Amitkumar Panchal
Amitkumar Panchal earned 250 total points
ID: 39250145
You can check one more thing.

Write down a simple java program that will try to connect the datasource which you are configuring in tomcat.
Run this program on the machine where you try to run tomcat and check how much time does it to connect to that data source.

There are cases where connection is taking time to connect to the particular machine (like db connection, remote calls, webservice calls etc.)
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now