Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

Thanks

share|improve this question
add comment

2 Answers

You should be able to find a logs folder under your installation director. In there, you'll find a catalina log (or localhost or any variant) file. In this log file, you will find the information you are looking for.

share|improve this answer
    
Thanks for the answer, But I have checked there already, where I have the files commons-daemon.log and localhost.log in log folder But they were deleted –  Suman Kumar Gadhiraju Feb 18 '13 at 6:13
    
If you have JMX enabled, use JConsole to find the uptime of the server. –  ETL Feb 18 '13 at 14:43
add comment

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");
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.