This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes How Tomcat Works book - performance question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How Tomcat Works book - performance question" Watch "How Tomcat Works book - performance question" New topic
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How Tomcat Works book - performance question
 
Similar Threads
Ejb Performance testing tool
Book help with Servlets, JSP's, Tomcat?
Tomcat performance tuning?
How Tomcat Works book - reader question
Java High Frequency / Low Latency Applications