Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Uptime

Status
Not open for further replies.

ronnyjljr

IS-IT--Management
Nov 23, 2003
249
US
What is the easiest way to get the uptime of the tomcat server?

typedef map<GiantX,gold, less<std::shortestpathtogold> > AwesomeMap;
 
On UNIX,Linux the easiest way is via the java process id.

The other way is to look in the stdout log, where you will see some startup times/messages :

Code:
Mar 17, 2006 1:52:19 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 17, 2006 1:52:19 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1761 ms
Mar 17, 2006 1:52:20 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 17, 2006 1:52:20 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.28
Mar 17, 2006 1:52:21 PM org.apache.catalina.core.StandardHost start

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top