File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How Tomcat Works book - performance question

 
Alvin chew
Ranch Hand
Posts: 834
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, mr.Budi Kurniawan, would your book recommend some idea to best tune tomcat for better performance ? thank you !
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Top ten Tomcat config tips

Tomcat Running in Windows Service

This will help you.
 
Budi Kurniawan
author
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
Alvin chew
Ranch Hand
Posts: 834
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 834
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1312
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 834
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1312
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 834
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
good link, Somkiat Puisungnoen
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic