Solved

Tomcat is very slow

Posted on 2004-10-25
1,457 Views
Last Modified: 2008-03-17
I've deployed a webapplication using Tomcat 4.0.1 on Solaris. All was fine. Then I've targizipped all the tomcat package and then I moved it on a new (more powerful) server. On this new servr Tomcat's starts fine, but it's very slow on showing pages (each page is showed in 20-30 seconds, even if yet compiled) and after several hours (even of inactivity) the java process eat up 99% of my CPU. I'm using the jdk 1.3.1_12 (the latest 1.3 jdk).

What's the problem? And why it works fine on the first server and not on the second? I missed some configuration while moving?
0
Question by:bugada
    3 Comments
     
    LVL 13

    Expert Comment

    by:petmagdy
    the best schema is to start isolating the cause of perforamce bottle neck as following:

    1- Are all JSPs slow? if the ones that contains no Database operations? if a JSP that contains no Database logic but still slow then their is a problem in the Server enviroment, either the OS kernel has a problem or their is a JVM problem or tomcat need to be reinstalled
    2- If only the pages with database operations has problem then their is either a database problem or Tomcat <--> database connectivity problem
    0
     
    LVL 10

    Author Comment

    by:bugada
    Well, all the jsp are very slow, all between 25 and 30 seconds... The backend resources (mailserver, ldap) are the same used by the first (fast) tomcat, and the net paths are configured correctly. So the bottleneck is represented by tomcat itself...

    And, last but not least, everytime i open an already compiled page the java process goes up to 75-80% of cpu usage... then it returns to normal levels (about 1%) in one minute...
    0
     
    LVL 13

    Accepted Solution

    by:
    put a static jsp and see if it is slow too if it is slow u need to refer to a Solaris administration at ur organization ur post this case to:

     http://www.experts-exchange.com/Operating_Systems/Solaris/

    but if the static Jsp is fast, their must be connection problem to the mailserver or LDAP maby a networking problem , u can test from any LDAP brower on this server to test the communication to the LDAP server
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Convert websphere application server default chained Certificates from 1024 to 2048 keysize or higher size and also you can change signatureAlgorithm . Please make sure Websphere Application Server fixpack 7.0.0.23 or Above. The following steps a…
    It’s an age old story, whether you’re looking for full-time employment or contract work. In order to land a job, you must have experience.
    This video Micro Tutorial is the second in a two-part series that shows how to create and use custom scanning profiles in Nuance's PaperPort 14.5 (http://www.experts-exchange.com/articles/17490/). But the ability to create custom scanning profiles a…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    913 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

    14 Experts available now in Live!

    Get 1:1 Help Now