• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

How Tomcat Works book - performance question

 
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi, mr.Budi Kurniawan, would your book recommend some idea to best tune tomcat for better performance ? thank you !
 
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Top ten Tomcat config tips

Tomcat Running in Windows Service

This will help you.
 
author
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
good link, Somkiat Puisungnoen
 
If you send is by car it's a shipment, but if by ship it's cargo. This tiny ad told me:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic