tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/server JkMain.java
Date Wed, 06 Feb 2002 20:24:09 GMT
costin      02/02/06 12:24:09

  Modified:    jk/java/org/apache/jk/server JkMain.java
  Log:
  Added the start time and a message to tune the initialization of jk
  
  Revision  Changes    Path
  1.9       +8 -0      jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkMain.java
  
  Index: JkMain.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/server/JkMain.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- JkMain.java	6 Feb 2002 18:22:45 -0000	1.8
  +++ JkMain.java	6 Feb 2002 20:24:09 -0000	1.9
  @@ -190,6 +190,8 @@
           }
           
           wEnv.start();
  +        long initTime=System.currentTimeMillis() - start_time;
  +        d("Jk running... init time=" + initTime + ms);
       }
   
       // -------------------- Usefull methods --------------------
  @@ -217,7 +219,13 @@
           IntrospectionUtils.setProperty( target, name, val );
       }
   
  +    public long getStartTime() {
  +        return start_time;
  +    }
  +    
       // -------------------- Main --------------------
  +
  +    static long start_time=System.currentTimeMillis();
       
       public static void main(String args[]) {
           try {
  
  
  

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


Mime
View raw message