You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mathias Bogaert <pa...@pandora.be> on 2000/07/03 19:08:57 UTC
Uptime
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
Re: Uptime
Posted by Alex Chaffee <gu...@edamame.stinky.com>.
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/