230 likes | 495 Views
Apache Jakarta Tomcat. 20041058 Suh, Junho. Road Map. Tomcat Overview History What is Tomcat? Servlet Container Web Server Component Tomcat Execution Mode Tomcat How it works?. Tomcat Overview. What we need to make more dynamic web documents?
E N D
Apache Jakarta Tomcat 20041058Suh, Junho
Road Map • Tomcat Overview • History • What is Tomcat? • Servlet Container • Web Server Component • Tomcat Execution Mode • Tomcat How it works?
Tomcat Overview • What we need to make more dynamic web documents? Server that supports JSP, ASP, database etc… • We concentrates on Something that support JSP. Something is Tomcat • Why it is popular?? GNU license, it`s free!
Road Map • Tomcat Overview • History • What is Tomcat? • Servlet Container • Web Server Component • Tomcat Execution Mode • Tomcat How it works?
History • Before Tomcat Competition of CGI CGI(Perl, C) 1 processor/1 request Fast CGI 1 processor/same request ASP,PHP 1 thread/1 request script Servlet 1 thread/1 request compile JSP 1 thread/1 request 2 compile • Born Tomcat Servlet 2.2api + jsp 1.1api = Tomcat 3.1 Servlet api 2.3 + JSP api 1.2 = Tomcat 4.0 Servlet api 2.4 + JSP api 2.0 = Tomcat 5.0(latest)
Tomcat 3.1 • including servlet reloading • WAR file support and added connectors for the IIS and Netscape web servers • contained fixes for security problems
Tomcat 4.0 • Implements a new servlet container (called Catalina) that is based on completely new architecture • JMX based administration features • JSP and Struts based administration web application • New Coyote connector (HTTP/1.1, AJP 1.3 and JNI support) • Rewritten Jasper JSP page compiler • Performance and memory efficiency improvements • Enhanced manager application support for integration with development tools • Custom Ant tasks to interact with the manager application directly from build.xml scripts
Tomcat 5.0 • resulting in improved performance, stability, and total cost of ownership • Performance optimizations and reduced garbage collection • Refactored application deployer, with an optional standalone deployer allowing validation and compilation of a web application before putting it in production • Complete server monitoring using JMX and the manager web application • Scalability and reliability enhancements • Improved Taglibs handling, including advanced pooling and tag plugins • Improved platform integration, with native Windows and Unix wrappers • Embedding using JMX • Enhanced Security Manager support • Integrated session clustering • Expanded documentation
Road Map • Tomcat Overview • History • What is Tomcat? • Servlet Container • Web Server Component • Tomcat Execution Mode • Tomcat How it works?
What is Tomcat? • Tomcat • Java-based web server + servlet container w/ JSP • Most popular!! • Tomcat Current Version • 4.1.27(stable) • 5.0.12(beta) • Tomcat Component • Mysql, java, Tomcat4, ant, apache, tomcat connector&apr, mod_jk, jdbc
Road Map • Tomcat Overview • History • What is Tomcat? • Servlet Container • Web Server Component • Tomcat Execution Mode • Tomcat How it works?
Servlet Container Servlet containers can be partitioned as: • Standalone: Integral part of web server (as when using a Java-based web server) • Add-on component to web server: Java container implementation + web server plugin • Servlet code runs inside Java container • Java container runs inside of JVM • Web server plugin opens JVM
Road Map • Tomcat Overview • History • What is Tomcat? • Servlet Container • Web Server Component • Tomcat Execution Mode • Tomcat How it works?
Web Server Component • Web Server(Apache) HTTP requests by returning ‘web’ resources (e.g., HTML files, images, applets,CGI output, …) over the Internet • Servlet Container(Tomcat) runtime shell that invokes servlets on behalf of clients software that runs servlets and manages them through their lifecycle
Road Map • Tomcat Overview • History • What is Tomcat? • Servlet Container • Web Server Component • Tomcat Execution Mode • Tomcat How it works?
Tomcat Execution Mode • Stand-alone mode ● Not as fast as Apache for static pages ● Not as configurable as Apache ● Not as robust as Apache ● May not support functionality found only in Apache modules (e.g., Perl, PHP, security) ● Mainly for development and debugging
Tomcat Execution Mode • In-process add-on mode Suitable for multi-threaded single process servers Provides good performance Limited in scalability • Out-of-process add-on mode Poorer response time than for in-process servlet container Better scalability Better stability
Road Map • Tomcat Overview • History • What is Tomcat? • Servlet Container • Web Server Component • Tomcat Execution Mode • Tomcat How it works?
Client Tomcat resource AJPV12/13 TCP/8007 4 2 5 3 1 Tomcat how it works? Tomcat interoperates with Apache Apache in standalone mode Tomcat in out-of-process add-on mode http://server/path/to/resource Apache adapter
Reference • http://http://jakarta.apache.org/tomcat/ • http://www.debianusers.org/ • http://www.superuser.co.kr/home/
Thank you! Q&A