[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Tomcat is very slow

Posted on 2004-10-25
3
Medium Priority
?
1,471 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
Comment
Question by:bugada
[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
3 Comments
 
LVL 13

Expert Comment

by:petmagdy
ID: 12400700
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
ID: 12401244
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:
petmagdy earned 750 total points
ID: 12401323
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

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …

650 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