Share E-Book
Scan to open this page

Scan with your phone to open this page

AuthorJason Brittain, Ian F Darwin

No description

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A hands-on administrator's guide to installing, configuring, securing, tuning, and clustering Apache Tomcat as a standalone servlet/JSP container or behind Apache httpd. Best for sysadmins, webmasters, and Java web developers who need to run Tomcat reliably in production rather than learn how to write servlets. 【Book Arc】 - **Opening (~0%–10%)**: Front matter and table of contents establish scope — the book targets running Tomcat itself, not writing web applications, and previews eleven chapters plus appendices. - **Early (~10%–33%)**: Installation, startup/shutdown, automatic startup, and basic configuration (ports, JVM settings, realms/roles/users, sessions, JNDI/JDBC resources, admin webapp), then deploying servlets, JSPs, and WAR files with Ant automation. - **Middle (~33%–57%)**: Performance tuning (measuring, external vs. internal tuning, capacity planning), Apache httpd integration and the APR connector, and security (SecurityManager, chroot jail, input filtering, SSL). - **Late (~57%–80%)**: Deep configuration reference for server.xml, web.xml, tomcat-users.xml, catalina.policy/properties, and context.xml, plus debugging and troubleshooting via logs, HTTP conversation tracing, and RequestDumperValve. - **Ending (~80%–100%)**: Building Tomcat from source with Ant, clustering for fault tolerance and scalability (Tomcat 6 implementation, JDBC request distribution and failover), final community/resources chapter, and appendices on installing Java and jbchroot.c. 【Key Takeaways】 - **You don't need to be a Java guru to run Tomcat** (Early): the book explicitly separates operating Tomcat from writing servlets, making it accessible to sysadmins and webmasters. - **Standalone vs. Apache-fronted is a real architectural decision** (Early): the book weighs when Tomcat alone suffices and when pairing it with Apache httpd is better, including APR connector options. - **Configuration is spread across several files, each with a distinct role** (Late): server.xml, web.xml, tomcat-users.xml, catalina.policy, catalina.properties, and context.xml each control different behavior. - **Deployment can be manual or automated** (Early): unpacked directories, WAR files, hot deployment, the Manager webapp, and Ant builds are presented as a progression toward repeatable releases. - **Performance tuning spans external and internal levers** (Middle): thread counts, JVM/OS settings, disabling DNS lookups, speeding up JSPs, and capacity planning are treated together. - **Security is layered, not a single switch** (Middle): SecurityManager, file permissions, chroot jails, bad-input filtering, and SSL are complementary defenses. - **Clustering addresses both fault tolerance and scalability** (Ending): running multiple Tomcat containers in parallel, with discussion of clustering approaches and JDBC request distribution/failover. - **Troubleshooting starts with logs and the HTTP conversation** (Late): logfile reading, error hunting, RequestDumperValve, and handling a Tomcat that won't shut down. 【Reading Tips】 - Skim the front matter and Chapter 1 quickly if you already have Tomcat running; deep-read Chapter 2 and Chapter 7 when you need to change behavior. - Treat Chapter 7 (configuration files) as a reference to revisit, not a linear read — jump to the specific file you're editing. - If you're tuning or securing a production server, read Chapters 4 and 6 together; they inform each other's trade-offs. - For high-traffic or HA sites, go straight to Chapter 10 after you understand deployment and tuning basics. - Note the book targets Tomcat 6-era versions; verify version-specific details against current Tomcat docs. 【Coverage Limits】 This guide is synthesized from stratified excerpts that are heaviest on front matter, preface, and table of contents; detailed chapter content is only partially represented, so specific configuration values, code samples, and benchmark results are not covered here.
Page 2
the designations have been printed in caps or initial caps. While every precaution has been taken in the preparation of this book, the publisher and authors...
View in text
Page 6
open source (http:// opensource.org) servlet and JSP engine. It can be used standalone and in conjunction with other web servers such as Apache httpd. This b...
View in text
Page 8
s, including docs, mailing lists, other web sites, and more. These are valuable resources for solving any problems you may have with future versions of Tomca...
View in text
Page 11
through- out the book, and for showing continued confidence. Another big thanks goes to Brett McLaughlin, who edited the First Edition and was the editor of...
View in text
Page 14
e that you have to be a Java guru to use it. That is not so! Although you need to know Java to modify the inter- nals of Tomcat or to write your own servlet...
View in text
Page 16
ys best to install your own recent stable version of Tomcat. Because there are so many Linux distributions, and because they are significantly dif- ferent fr...
View in text
Page 18
ent user account, you’ll need root (superuser) access again. Here’s one way to do that from the shell: # chown -R tomcat apache-tomcat-6.0.14 Tomcat should n...
View in text
Page 20
: Failed dependencies: /bin/sh is needed by tomcat-6.0.14-0.noarch usually occurs on operating systems that do not primarily use the RPM package manager, and...
View in text
Tags
AI categories
JavaBackendDevOps
ISBN: 0596101066
Publisher: O'Reilly Media
Publish Year: 2007
Language: English
Pages: 491
File Format: PDF
File Size: 3.7 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…