Reader small image

You're reading from  Apache Tomcat 7 Essentials

Product typeBook
Published inMar 2012
Reading LevelBeginner
PublisherPackt
ISBN-139781849516624
Edition1st Edition
Languages
Right arrow
Author (1)
Tanuj Khare
Tanuj Khare
author image
Tanuj Khare

Tanuj Khare has worked as a professional in IT for six+ years. He is involved in Process improvements using ITIL framework and techniques (LEAN and Six sigma). He is MCSA and ITIL certified and has expertise in handling critical production server issues and has a track record of dealing with many complex problems. His quick resolution to issues faced in a production environment helped his team and clients a lot. Tanuj has SME (subject matter expertise) in Tomcat, weblogic, and JBOSS Server Administration. His experience includes working with large enterprise web hosting environment for J2EE container and small teams and his quick turnaround time resulted in on-time delivery. Apart from this, his technical expertise in root cause analysis, problem management, migration of enterprise application, and upgrade of web application servers is commendable. Until now he has done around 100+ enterprise application migrations. He has also done J2EE web and application upgrades and managed environments with 1,000+ middleware instances. Outside of work life, Tanuj enjoys playing table tennis and exploring new technologies. Tanuj is a good dancer. This is his first book.
Read more about Tanuj Khare

Right arrow

Log analysis


Log analysis is a very important and tricky issue, which needs to be handled with a lot of care. If you overlook a few lines, then you will never be able to find the root cause of the issue. Some of the best practices which need to be kept in consideration while doing the log analysis are mentioned as follows:

  • Check the logs of the last 1 hour from the issue

  • Always go to the first exception in the logs when the error has started

  • Always keep in mind that issues are not caused due to malfunction of Tomcat, also check the other infrastructure resources

In non-DOS operating systems (Linux, Unix, Ubuntu, and so on), there are two utilities which are very useful in log analysis, grep and awk. Let's discuss grep and awk utilities briefly:

  • grep: This utility prints the lines which match the string searched.

    grep Error catalina.out
    
    • The previous command is an example of the grep command for searching the word "error" in the file catalina.out and displays the lines which contain the word...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Apache Tomcat 7 Essentials
Published in: Mar 2012Publisher: PacktISBN-13: 9781849516624

Author (1)

author image
Tanuj Khare

Tanuj Khare has worked as a professional in IT for six+ years. He is involved in Process improvements using ITIL framework and techniques (LEAN and Six sigma). He is MCSA and ITIL certified and has expertise in handling critical production server issues and has a track record of dealing with many complex problems. His quick resolution to issues faced in a production environment helped his team and clients a lot. Tanuj has SME (subject matter expertise) in Tomcat, weblogic, and JBOSS Server Administration. His experience includes working with large enterprise web hosting environment for J2EE container and small teams and his quick turnaround time resulted in on-time delivery. Apart from this, his technical expertise in root cause analysis, problem management, migration of enterprise application, and upgrade of web application servers is commendable. Until now he has done around 100+ enterprise application migrations. He has also done J2EE web and application upgrades and managed environments with 1,000+ middleware instances. Outside of work life, Tanuj enjoys playing table tennis and exploring new technologies. Tanuj is a good dancer. This is his first book.
Read more about Tanuj Khare