Solved

Slow Tomcat Startup

Posted on 2013-06-12
2
1,381 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 21

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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

762 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