Solved

Slow Tomcat Startup

Posted on 2013-06-12
2
1,394 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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

Suggested Solutions

This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
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 setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
Via a live example, show how to take different types of Oracle backups using RMAN.
Suggested Courses

739 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