Sunday, September 22

Increasing tomcat server performance by Consolidating log file handlers

                    Increasing tomcat server performance by Consolidating log file handlers







By default, Tomcat uses two handlers for generating log files. But this can be changed by opening up the logging.properties file and looking for the following entry:

.handlers = 1catalina.org.apache.juli.FileHandler,
                   java.util.logging.ConsoleHandler

By simply changing the .handlers entry to use the  FileHandler only, multiple handlers are made to log  into one and reduce the overhead in writing applications logs:

.handler = 1catalina.org.apache.juli.FileHandler

It is just a simple change, but by making this change in the log file handlers, overhead of logging is reduced a lot , and that minimizes the impact of performance monitoring





-->

No comments:

Post a Comment