tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Chaffee <g...@edamame.stinky.com>
Subject Re: Uptime
Date Fri, 07 Jul 2000 09:37:07 GMT
You can read the log files (3.2 beta has timestamps on by default). or
just fudge it, like

<%! long starttime = System.currentTimeMillis(); 
long getUptime() {
 return System.currentTimeMillis() - starttime;
}
%>

Uptime: <%=new Date(getUptime()) %>

YMMV -

 - A

On Mon, Jul 03, 2000 at 07:08:57PM +0200, Mathias Bogaert wrote:
> Hi,
> 
> I am a new tomcat user, and i got Tomcat running on Windows ME.
> I have 1 question: is there a way to get the time (in seconds or effective time format)
Tomcat is serving a specific web-app? 
> Or just one JSP page? A sort of 'compiled and put in memory' date/time?
> 
> TIA
> Mathias Bogaert

-- 
Alex Chaffee                       mailto:alex@jguru.com
jGuru - Java News and FAQs         http://www.jguru.com/alex/
Creator of Gamelan                 http://www.gamelan.com/
Founder of Purple Technology       http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/

Mime
View raw message