tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup Catalina.java
Date Tue, 29 Apr 2003 22:40:53 GMT
remm        2003/04/29 15:40:52

  Modified:    catalina/src/share/org/apache/catalina/startup Catalina.java
  Log:
  - Display startup times.
  
  Revision  Changes    Path
  1.16      +15 -8     jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/Catalina.java
  
  Index: Catalina.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/Catalina.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- Catalina.java	12 Mar 2003 20:40:39 -0000	1.15
  +++ Catalina.java	29 Apr 2003 22:40:52 -0000	1.16
  @@ -515,9 +515,6 @@
               return;
           }
   
  -        long t2 = System.currentTimeMillis();
  -        log.debug( "Server.xml processed " + (t2 - t1));
  -
           // Replace System.out and System.err with a custom PrintStream
           // TODO: move to Embedded, make it configurable
           SystemLogHandler systemlog = new SystemLogHandler(System.out);
  @@ -533,6 +530,9 @@
               }
           }
   
  +        long t2 = System.currentTimeMillis();
  +        log.info("Initialization processed in " + (t2 - t1) + " ms");
  +
       }
   
   
  @@ -563,9 +563,13 @@
        * Start a new server instance.
        */
       public void start() {
  -        if( server==null ) {
  +
  +        if (server == null) {
               load();
           }
  +
  +        long t1 = System.currentTimeMillis();
  +
           // Start the new server
           if (server instanceof Lifecycle) {
               try {
  @@ -574,6 +578,9 @@
                   log.error("Catalina.start: ", e);
               }
           }
  +
  +        long t2 = System.currentTimeMillis();
  +        log.info("Server startup in " + (t2 - t1) + " ms");
   
           try {
               // Register shutdown hook
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message