Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Slow Tomcat Startup

Posted on 2013-06-12
2
Medium Priority
?
1,467 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 750 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 750 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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.…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
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 explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses

604 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