| Author |
How Tomcat Works book - performance question
|
Alvin chew
Ranch Hand
Joined: Jan 08, 2004
Posts: 834
|
|
|
hi, mr.Budi Kurniawan, would your book recommend some idea to best tune tomcat for better performance ? thank you !
|
 |
somkiat puisungnoen
Ranch Hand
Joined: Jul 04, 2003
Posts: 1312
|
|
Top ten Tomcat config tips Tomcat Running in Windows Service This will help you.
|
SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
|
 |
Budi Kurniawan
author
Greenhorn
Joined: Sep 15, 2004
Posts: 12
|
|
It doesn't offer configuration tips. Rather it teaches how to write your own components. It is not impossible to write a module that can improve performance. For example, there are four types of containers: Engine, Host, Context, and Wrapper. Every HTTP request for a servlet/JSP page goes through these four. If you know that your Tomcat will only run one application, you can create a Context module that does not need a Host or an Engine. That way, the connector will pass all requests directly to the Context.
|
Author of <a href="http://www.amazon.com/exec/obidos/ASIN/097521280X/ref=jranch-20" target="_blank" rel="nofollow">How Tomcat Works</a>
|
 |
Ko Ko Naing
Ranch Hand
Joined: Jun 08, 2002
Posts: 3178
|
|
Originally posted by Budi Kurniawan: If you know that your Tomcat will only run one application, you can create a Context module that does not need a Host or an Engine. That way, the connector will pass all requests directly to the Context.
Will it improve performance significantly? Or just less resources are used in Tomcat? Could you explain more about this issue so that we can get knowledge how to get the highest performace from Tomcat... Thanks a lot for your answer...
|
Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
|
 |
Alvin chew
Ranch Hand
Joined: Jan 08, 2004
Posts: 834
|
|
|
i think we really need this book for further deep understanding of tomcat structure , thanks for your comments, mr.Budi Kurniawan
|
 |
Alvin chew
Ranch Hand
Joined: Jan 08, 2004
Posts: 834
|
|
|
i have try on tomcat 4 & 5 , i see tomcat 5 is faster in term of startup load, what have been improve in tomcat 5 to make it running faster ?
|
 |
somkiat puisungnoen
Ranch Hand
Joined: Jul 04, 2003
Posts: 1312
|
|
Originally posted by Alvin chew: i have try on tomcat 4 & 5 , i see tomcat 5 is faster in term of startup load, what have been improve in tomcat 5 to make it running faster ?
I think, Speed of starting tomcat server depend on 1. Number of library in common/lib and server/lib 2. Number of web application has been deployed in tomcat
|
 |
Alvin chew
Ranch Hand
Joined: Jan 08, 2004
Posts: 834
|
|
Somkiat Puisungnoen , we use tomcat 4 & 5 to run only one application which we are developed..and we need to test it out for compatible but the speed still preferable in tomcat 5 [ September 16, 2004: Message edited by: Alvin chew ]
|
 |
somkiat puisungnoen
Ranch Hand
Joined: Jul 04, 2003
Posts: 1312
|
|
Why tomcat 5.0 faster than tomcat 4.0 ?? Answer :: You can see detail of GOAL of Tomcat 5.0 in below ::
Tomcat 5.0 Goals Tomcat 5.0 looks great so far. It includes support for the Java Servlet 2.4 and the JSP 2.0 specifications, fixes many performance issues, and adds many new features and other improvements. Below we'll look at the two overall goals of Tomcat 5.0, which were implemented as of version 5.0.16.
More detail at What new in Tomcat 5.0 ?
|
 |
Alvin chew
Ranch Hand
Joined: Jan 08, 2004
Posts: 834
|
|
|
good link, Somkiat Puisungnoen
|
 |
 |
|
|
subject: How Tomcat Works book - performance question
|
|
|