Windows – Find TOMCAT 5.0.28 server start up time in windows,

javatomcattomcat5.5windows

I have two server instances TOMCAT 5.5 and TOMCAT 5.0.28, My application running on TOMCAT5.5. some body have stopped my TOMCAT5.5 and started TOMCAT 5.0.28 (May be accidentally).
Can any body help me to find the TOMCAT 5.0.28 start up and shutdown time, I have tried to find at Event viewer but couldn't get any info
I tried also at commons-daemon.log and localhost.log (may be deleted by some one)
is there any possible way to find, other than above possiblities

Best Answer

Since you don't have the logs anymore, create a JSP file and put this in it:

    RuntimeMXBean mx = ManagementFactory.getRuntimeMXBean();

    System.out.println("VM start time : " +  new Date(mx.getStartTime()));
    System.out.println("VM up time : " +  mx.getUptime() + " ms");