Apache Jakarta Tomcat 20041058 Suh, Junho. Road Map Tomcat Overview Tomcat Overview History History...
-
Upload
donald-hodge -
Category
Documents
-
view
261 -
download
4
Transcript of Apache Jakarta Tomcat 20041058 Suh, Junho. Road Map Tomcat Overview Tomcat Overview History History...
Road MapRoad Map
Tomcat OverviewTomcat Overview HistoryHistory What is Tomcat?What is Tomcat? Servlet ContainerServlet Container Web Server ComponentWeb Server Component Tomcat Execution ModeTomcat Execution Mode Tomcat How it works?Tomcat How it works?
Tomcat OverviewTomcat Overview What we need to make more dynamic web documents?What we need to make more dynamic web documents? Server that supports JSP, ASP, database etc…Server that supports JSP, ASP, database etc…
We concentrates on We concentrates on SomethingSomething that support JSP. that support JSP. Something is Something is TomcatTomcat
Why it is popular??Why it is popular??GNU license, it`s free!GNU license, it`s free!
Road MapRoad Map
Tomcat OverviewTomcat Overview HistoryHistory What is Tomcat?What is Tomcat? Servlet ContainerServlet Container Web Server ComponentWeb Server Component Tomcat Execution ModeTomcat Execution Mode Tomcat How it works?Tomcat How it works?
HistoryHistory Before TomcatBefore Tomcat
Competition of CGICompetition of CGICGI(Perl, C)CGI(Perl, C) 1 processor/1 request1 processor/1 requestFast CGIFast CGI 1 processor/same request1 processor/same requestASP,PHPASP,PHP 1 thread/1 request script1 thread/1 request scriptServletServlet 1 thread/1 request compile1 thread/1 request compileJSPJSP 1 thread/1 request 2 compile1 thread/1 request 2 compile
Born TomcatBorn TomcatServlet 2.2api + jsp 1.1api = Tomcat 3.1Servlet 2.2api + jsp 1.1api = Tomcat 3.1Servlet api 2.3 + JSP api 1.2 = Tomcat 4.0Servlet api 2.3 + JSP api 1.2 = Tomcat 4.0Servlet api 2.4 + JSP api 2.0 = Tomcat 5.0(latest)Servlet api 2.4 + JSP api 2.0 = Tomcat 5.0(latest)
Tomcat 3.1Tomcat 3.1 including servlet reloadingincluding servlet reloading WAR file support and added connectors for the IIS and NWAR file support and added connectors for the IIS and N
etscape web serversetscape web servers contained fixes for security problemscontained fixes for security problems
Tomcat 4.0Tomcat 4.0 Implements a new servlet container (called Catalina) that is baImplements a new servlet container (called Catalina) that is ba
sed on completely new architecturesed on completely new architecture JMX based administration features JMX based administration features JSP and Struts based administration web application JSP and Struts based administration web application New Coyote connector (HTTP/1.1, AJP 1.3 and JNI support) New Coyote connector (HTTP/1.1, AJP 1.3 and JNI support) Rewritten Jasper JSP page compiler Rewritten Jasper JSP page compiler Performance and memory efficiency improvements Performance and memory efficiency improvements Enhanced manager application support for integration with deEnhanced manager application support for integration with de
velopment tools velopment tools Custom Ant tasks to interact with the manager application direCustom Ant tasks to interact with the manager application dire
ctly from build.xml scriptsctly from build.xml scripts
Tomcat 5.0Tomcat 5.0 resulting in improved performance, stability, and total cost of ownershipresulting in improved performance, stability, and total cost of ownership Performance optimizations and reduced garbage collection Performance optimizations and reduced garbage collection Refactored application deployer, with an optional standalone deployer allowRefactored application deployer, with an optional standalone deployer allow
ing validation and compilation of a web application before putting it in proding validation and compilation of a web application before putting it in production uction
Complete server monitoring using JMX and the manager web application Complete server monitoring using JMX and the manager web application Scalability and reliability enhancements Scalability and reliability enhancements Improved Taglibs handling, including advanced pooling and tag plugins Improved Taglibs handling, including advanced pooling and tag plugins Improved platform integration, with native Windows and Unix wrappers Improved platform integration, with native Windows and Unix wrappers Embedding using JMX Embedding using JMX Enhanced Security Manager support Enhanced Security Manager support Integrated session clustering Integrated session clustering Expanded documentation Expanded documentation
Road MapRoad Map
Tomcat OverviewTomcat Overview HistoryHistory What is Tomcat?What is Tomcat? Servlet ContainerServlet Container Web Server ComponentWeb Server Component Tomcat Execution ModeTomcat Execution Mode Tomcat How it works?Tomcat How it works?
What is Tomcat?What is Tomcat?Tomcat
Java-based web server + servlet container w/ JSP Most popular!!
Tomcat Current Version4.1.27(stable)5.0.12(beta)
Tomcat ComponentMysql, java, Tomcat4, ant, apache, tomcat connector&apr, mod_jk, jdbc
Road MapRoad Map
Tomcat OverviewTomcat Overview HistoryHistory What is Tomcat?What is Tomcat? Servlet ContainerServlet Container Web Server ComponentWeb Server Component Tomcat Execution ModeTomcat Execution Mode Tomcat How it works?Tomcat How it works?
Servlet ContainerServlet Container
Servlet containers can be partitioned as:Servlet containers can be partitioned as: Standalone: Integral part of web server (as when using Standalone: Integral part of web server (as when using
a Java-based web server)a Java-based web server) Add-on component to web server: Java container impleAdd-on component to web server: Java container imple
mentation + web server plugin mentation + web server plugin Servlet code runs inside Java containerServlet code runs inside Java container Java container runs inside of JVMJava container runs inside of JVM Web server plugin opens JVMWeb server plugin opens JVM
Road MapRoad Map
Tomcat OverviewTomcat Overview HistoryHistory What is Tomcat?What is Tomcat? Servlet ContainerServlet Container Web Server ComponentWeb Server Component Tomcat Execution ModeTomcat Execution Mode Tomcat How it works?Tomcat How it works?
Web Server ComponentWeb Server Component
Web Server(Apache)Web Server(Apache)
HTTP requests by returning ‘web’ resources (e.g., HTML filHTTP requests by returning ‘web’ resources (e.g., HTML files, images, applets,CGI output, …) over the Internetes, images, applets,CGI output, …) over the Internet
Servlet Container(Tomcat)Servlet Container(Tomcat)runtime shell that invokes servlets on behalf of clientsruntime shell that invokes servlets on behalf of clientssoftware that runs servlets and manages them through thsoftware that runs servlets and manages them through their lifecycleeir lifecycle
Road MapRoad Map
Tomcat OverviewTomcat Overview HistoryHistory What is Tomcat?What is Tomcat? Servlet ContainerServlet Container Web Server ComponentWeb Server Component Tomcat Execution ModeTomcat Execution Mode Tomcat How it works?Tomcat How it works?
Tomcat Execution ModeTomcat Execution Mode
Stand-alone modeStand-alone mode
●● Not as fast as Apache for static pagesNot as fast as Apache for static pages
●● Not as configurable as ApacheNot as configurable as Apache
●● Not as robust as ApacheNot as robust as Apache
●● May not support functionality found only in Apache modules May not support functionality found only in Apache modules (e.g., Perl, PHP, security)(e.g., Perl, PHP, security)
●● Mainly for development and debuggingMainly for development and debugging
Tomcat Execution ModeTomcat Execution Mode
In-process add-onIn-process add-on modemode Suitable for multi-threaded single process serversSuitable for multi-threaded single process servers Provides good performanceProvides good performance Limited in scalabilityLimited in scalability Out-of-process add-on modeOut-of-process add-on mode Poorer response time than for in-process servlet containePoorer response time than for in-process servlet containe
rr Better scalabilityBetter scalability Better stabilityBetter stability
Road MapRoad Map
Tomcat OverviewTomcat Overview HistoryHistory What is Tomcat?What is Tomcat? Servlet ContainerServlet Container Web Server ComponentWeb Server Component Tomcat Execution ModeTomcat Execution Mode Tomcat How it works?Tomcat How it works?
Tomcat how it works?Tomcat how it works?
Tomcat interoperates with ApacheTomcat interoperates with Apache
Apache in standalone mode
Tomcat in out-of-process add-on mode
Client
http://server/path/to/resource
Tomcat
AJPV12/13TCP/8007
2resource
53
4
Apache
adapter
1
ReferenceReference
http://http://jakarta.apache.org/tomcat/http://http://jakarta.apache.org/tomcat/ http://www.debianusers.org/http://www.debianusers.org/ http://http://www.superuser.co.krwww.superuser.co.kr/home//home/